repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test21680.d
blob
caa4df4233fbccbf8a037c4d32a9e58140bcee44
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
}