You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example all 3 assertions fails. Class Base and Child are imported via static libraries. The issue occus on linux and windows with recent
dmd compiler.
file main.d
-------------------------------------------------------------------
import base, child;
void main()
{
import std.traits: fullyQualifiedName;
assert( Object.factory(fullyQualifiedName!Child) !is null);
assert( createObject(fullyQualifiedName!Base) !is null);
assert( createObject(fullyQualifiedName!Child) !is null);
}
file base.d
-------------------------------------------------------------------
module base;
class Base { }
Object createObject(string name)
{
return Object.factory(name);
}
file child.d
--------------------------------------------------------------------
module child;
import base;
class Child: Base { }
The application is compiled via
dmd base -lib
dmd child -lib base.lib
dmd main base.lib child.lib
main
PAUSE
The text was updated successfully, but these errors were encountered:
Andre reported this on 2016-06-05T08:46:01Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=16124
CC List
Description
The text was updated successfully, but these errors were encountered: