blob: fe142adc8471cef97a57ab4dfa2bcfaa90957b91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// REQUIRED_ARGS: -m32
/*
TEST_OUTPUT:
---
fail_compilation/diag9635.d(17): Error: need `this` for `i` of type `int`
fail_compilation/diag9635.d(18): Error: need `this` for `foo` of type `pure nothrow @nogc @safe void()`
---
*/
struct Foo
{
int i;
void foo()() { }
static void bar()
{
i = 4;
foo();
}
}
|