Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail46.d
blob: 9401b9218621dae2348c5be99c50145f26801dc5 [
file
] [
log
] [
blame
]
// PERMUTE_ARGS: -inline
/*
TEST_OUTPUT:
---
fail_compilation/fail46.d(19): Error: need `this` for `bug` of type `int()`
---
*/
struct
MyStruct
{
int
bug
()
{
return
3
;
}
}
int
main
()
{
assert
(
MyStruct
.
bug
()
==
3
);
return
0
;
}