MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail217.d
blob11ad76fabdcdaa72d17157226b48fd186ed684b0
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail217.d(22): Error: mutable method `fail217.Message.this` is not callable using a `immutable` object
5 fail_compilation/fail217.d(13): Consider adding `const` or `inout` here
6 ---
7 */
9 class Message
11 public int notifier;
13 this( int notifier_object )
15 notifier = notifier_object;
19 void
20 main()
22 auto m2 = new immutable(Message)(2);
23 m2.notifier = 3;