mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
225 B
D
13 lines
225 B
D
// https://issues.dlang.org/show_bug.cgi?id=20520
|
|
|
|
class C {}
|
|
|
|
enum Foo {
|
|
Bar = new C()
|
|
}
|
|
|
|
void main()
|
|
{
|
|
//pragma(msg, typeid(Foo.Bar)); // Works fine: typeid(C())
|
|
auto t = typeid(Foo.Bar); // Segfault here
|
|
}
|