Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag6707.d
blob: cabdec3f1ad7c01a233213c7852d532446853c8e [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag6707.d(16): Error: mutable method diag6707.Foo.value is not callable using a const object
---
*/
module
diag6707
;
struct
Foo
{
@property
bool
value
()
{
return
true
;
}
void
test
()
const
{
auto
x
=
value
;
}
}