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, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag6707.d
blob
70fea4fcf681005beeda210a3ced3c300aadfd68
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag6707.d(17): Error: mutable method `diag6707.Foo.value` is not callable using a `const` object
5
fail_compilation/diag6707.d(13): Consider adding `const` or `inout` here
6
---
7
*/
8
9
module
diag6707
;
10
11
struct
Foo
12
{
13
@property
bool
value
() {
return true
; }
14
15
void
test
()
const
16
{
17
auto
x
=
value
;
18
}
19
}