blob: 41411782bf4a82f43efe74c8fbcb728035237df2 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice15332.d(16): Error: need 'this' for 'fun' of type 'int()'
fail_compilation/ice15332.d(17): Error: need 'this' for 'var' of type 'int'
---
*/
class C
{
int fun() { return 5; }
int var;
void test()
{
int a1 = function() { return fun; }();
int a2 = function() { return var; }();
}
}