1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/ice15332.d(16): Error: need 'this' for 'fun' of type 'int()' 5 fail_compilation/ice15332.d(17): Error: need 'this' for 'var' of type 'int' 6 --- 7 */ 8 9 class C 10 { fun()11 int fun() { return 5; } 12 int var; 13 test()14 void test() 15 { 16 int a1 = function() { return fun; }(); 17 int a2 = function() { return var; }(); 18 } 19 } 20