May 25, 2019 [Issue 16980] [REG2.072.0] wrong interface called | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16980 Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |sahmi.soulaimane@gmail.com Resolution|--- |FIXED --- Comment #9 from Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane@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); ``` -- |
Copyright © 1999-2021 by the D Language Foundation