fork download
  1.  
  2. struct T
  3. {
  4. @property int value() { return 0; }
  5. }
  6.  
  7. void main()
  8. {
  9. T t;
  10.  
  11. int* p = &t.value(); // error
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(11): Error: t.value() is not an lvalue
stdout
Standard output is empty