On Monday, 13 February 2017 at 13:38:23 UTC, Kagamin wrote:
On Monday, 13 February 2017 at 13:21:44 UTC, Daniel Kozak wrote:and I guess even ComObject does not inherit from ObjectThis compiles: void f() { import core.sys.windows.com; ComObject a; Object b=a; }
"References cannot be upcast to the enclosing class object, nor can they be downcast to a derived interface."
https://dlang.org/spec/interface.html#com-interfaces