4 fail_compilation/diag1730.d(51): Error: mutable method `diag1730.S.func` is not callable using a `inout` object
5 fail_compilation/diag1730.d(43): Consider adding `const` or `inout` here
6 fail_compilation/diag1730.d(53): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `inout` object
7 fail_compilation/diag1730.d(54): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a non-shared `inout` object
8 fail_compilation/diag1730.d(46): Consider adding `const` or `inout` here
9 fail_compilation/diag1730.d(55): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared `inout` object
10 fail_compilation/diag1730.d(70): Error: `immutable` method `diag1730.S.iFunc` is not callable using a mutable object
11 fail_compilation/diag1730.d(71): Error: `shared` method `diag1730.S.sFunc` is not callable using a non-shared object
12 fail_compilation/diag1730.d(72): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared mutable object
13 fail_compilation/diag1730.d(75): Error: mutable method `diag1730.S.func` is not callable using a `const` object
14 fail_compilation/diag1730.d(43): Consider adding `const` or `inout` here
15 fail_compilation/diag1730.d(77): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `const` object
16 fail_compilation/diag1730.d(78): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a non-shared `const` object
17 fail_compilation/diag1730.d(46): Consider adding `const` or `inout` here
18 fail_compilation/diag1730.d(79): Error: `shared` `const` method `diag1730.S.scFunc` is not callable using a non-shared `const` object
19 fail_compilation/diag1730.d(82): Error: mutable method `diag1730.S.func` is not callable using a `immutable` object
20 fail_compilation/diag1730.d(43): Consider adding `const` or `inout` here
21 fail_compilation/diag1730.d(85): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a `immutable` object
22 fail_compilation/diag1730.d(46): Consider adding `const` or `inout` here
23 fail_compilation/diag1730.d(89): Error: non-shared method `diag1730.S.func` is not callable using a `shared` object
24 fail_compilation/diag1730.d(43): Consider adding `shared` here
25 fail_compilation/diag1730.d(90): Error: non-shared `const` method `diag1730.S.cFunc` is not callable using a `shared` mutable object
26 fail_compilation/diag1730.d(44): Consider adding `shared` here
27 fail_compilation/diag1730.d(91): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `shared` mutable object
28 fail_compilation/diag1730.d(94): Error: non-shared `inout` method `diag1730.S.wFunc` is not callable using a `shared` mutable object
29 fail_compilation/diag1730.d(48): Consider adding `shared` here
30 fail_compilation/diag1730.d(96): Error: non-shared mutable method `diag1730.S.func` is not callable using a `shared` `const` object
31 fail_compilation/diag1730.d(43): Consider adding `shared` here
32 fail_compilation/diag1730.d(97): Error: non-shared `const` method `diag1730.S.cFunc` is not callable using a `shared` `const` object
33 fail_compilation/diag1730.d(44): Consider adding `shared` here
34 fail_compilation/diag1730.d(98): Error: `immutable` method `diag1730.S.iFunc` is not callable using a `shared` `const` object
35 fail_compilation/diag1730.d(99): Error: `shared` mutable method `diag1730.S.sFunc` is not callable using a `shared` `const` object
36 fail_compilation/diag1730.d(46): Consider adding `const` or `inout` here
37 fail_compilation/diag1730.d(101): Error: non-shared `inout` method `diag1730.S.wFunc` is not callable using a `shared` `const` object
38 fail_compilation/diag1730.d(48): Consider adding `shared` here
44 void cFunc() const { }
45 void iFunc() immutable { }
46 void sFunc() shared { }
47 void scFunc() shared const { }
48 void wFunc() inout { }
49 static void test(inout(S
) s
)
66 shared(const(S
)) scObj
;