mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
9 lines
227 B
D
9 lines
227 B
D
// 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));
|
|
}
|