☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test21680.d
☽
☼
gcc/testsuite/gdc.test/compilable/test21680.d
code
plain
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
}