]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail11545.d
Add D front-end, libphobos library, and D2 testsuite.
[gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail11545.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11545.d(14): Error: need 'this' for 'x' of type 'int'
5 fail_compilation/fail11545.d(18): Error: need 'this' for 'x' of type 'int'
6 ---
7 */
8
9 class C
10 {
11 int x = 42;
12
13 int function() f1 = function() {
14 return x;
15 };
16
17 int function() f2 = {
18 return x;
19 };
20 }
This page took 0.036402 seconds and 5 git commands to generate.