Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test21680.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21680
2
3 struct Unique
4 {
5 alias ValueType = typeof({ return field; }()); /* Error: need `this` for
6 `field` of type `int` */
7 int field;
8 static assert(is(ValueType == int));
9 }