[Issue 16980] [REG2.072.0] wrong interface called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 25 08:01:29 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=16980

Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |sahmi.soulaimane at gmail.com
         Resolution|---                         |FIXED

--- Comment #9 from Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane at gmail.com> ---
> // calling the destructor still fails

It fails because the field `ab` is not initialized, hence holds `null`. Try
declaring `tinst` like this:
```
auto tinst = T!()(new C);
```

--


More information about the Digitalmars-d-bugs mailing list