1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/parse12967b.d(24): Error: function parse12967b.C.pre_c without 'this' cannot be const 5 fail_compilation/parse12967b.d(25): Error: function parse12967b.C.pre_c without 'this' cannot be const 6 fail_compilation/parse12967b.d(26): Error: function parse12967b.C.pre_i without 'this' cannot be immutable 7 fail_compilation/parse12967b.d(27): Error: function parse12967b.C.pre_i without 'this' cannot be immutable 8 fail_compilation/parse12967b.d(28): Error: function parse12967b.C.pre_w without 'this' cannot be inout 9 fail_compilation/parse12967b.d(29): Error: function parse12967b.C.pre_w without 'this' cannot be inout 10 fail_compilation/parse12967b.d(30): Error: function parse12967b.C.pre_s without 'this' cannot be shared 11 fail_compilation/parse12967b.d(31): Error: function parse12967b.C.pre_s without 'this' cannot be shared 12 fail_compilation/parse12967b.d(33): Error: function parse12967b.C.post_c without 'this' cannot be const 13 fail_compilation/parse12967b.d(34): Error: function parse12967b.C.post_c without 'this' cannot be const 14 fail_compilation/parse12967b.d(35): Error: function parse12967b.C.post_i without 'this' cannot be immutable 15 fail_compilation/parse12967b.d(36): Error: function parse12967b.C.post_i without 'this' cannot be immutable 16 fail_compilation/parse12967b.d(37): Error: function parse12967b.C.post_w without 'this' cannot be inout 17 fail_compilation/parse12967b.d(38): Error: function parse12967b.C.post_w without 'this' cannot be inout 18 fail_compilation/parse12967b.d(39): Error: function parse12967b.C.post_s without 'this' cannot be shared 19 fail_compilation/parse12967b.d(40): Error: function parse12967b.C.post_s without 'this' cannot be shared 20 --- 21 */ 22 class C 23 { pre_c()24 const static pre_c() {} pre_c()25 const static void pre_c() {} pre_i()26 immutable static pre_i() {} pre_i()27 immutable static void pre_i() {} pre_w()28 inout static pre_w() {} pre_w()29 inout static void pre_w() {} pre_s()30 shared static pre_s() {} pre_s()31 shared static void pre_s() {} 32 post_c()33 static post_c() const {} post_c()34 static void post_c() const {} post_i()35 static post_i() immutable {} post_i()36 static void post_i() immutable {} post_w()37 static post_w() inout {} post_w()38 static void post_w() inout {} post_s()39 static post_s() shared {} post_s()40 static void post_s() shared {} 41 } 42