Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test21680.d
blob: caa4df4233fbccbf8a037c4d32a9e58140bcee44 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=21680
struct
Unique
{
alias
ValueType
=
typeof
({
return
field
;
}());
/* Error: need `this` for
`field` of type `int` */
int
field
;
static
assert
(
is
(
ValueType
==
int
));
}