| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/test4838.d(13): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 5 |
fail_compilation/test4838.d(14): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 6 |
fail_compilation/test4838.d(15): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 7 |
fail_compilation/test4838.d(16): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 8 |
fail_compilation/test4838.d(17): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 9 |
fail_compilation/test4838.d(18): Error: `const`/`immutable`/`shared`/`inout`/`return` attributes are only valid for non-static member functions |
| 10 |
--- |
| 11 |
*/ |
| 12 |
|
| 13 |
void function() const fpc; |
| 14 |
void function() immutable fpi; |
| 15 |
void function() shared fps; |
| 16 |
void function() shared const fpsc; |
| 17 |
void function() inout fpw; |
| 18 |
void function() shared inout fpsw; |