mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
199 B
D
16 lines
199 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail290.d(15): Error: no `this` to create delegate for `foo`
|
|
---
|
|
*/
|
|
|
|
struct Foo
|
|
{
|
|
void foo(int x) {}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
void delegate (int) a = &Foo.foo;
|
|
}
|