Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
enumbasearithmetic.d
blob: 4dbc56da476ddae7e263321de06901dec4b28854 [
file
] [
log
] [
blame
]
//https://issues.dlang.org/show_bug.cgi?id=20777
struct
FooInt
{
int
i
;
auto
opBinary
(
string
op
:
"+"
)(
int
j
)
{
return
typeof
(
this
)(
i
+
j
);
}
static
@property
FooInt
max
()
{
return
typeof
(
this
)(
int
.
max
);
}
}
enum
foolist
{
hi
=
FooInt
(
0
),
bye
}