dmd/compiler/test/fail_compilation/fail7443.d
2022-07-09 18:53:07 +02:00

14 lines
408 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail7443.d(11): Error: `static` has no effect on a constructor inside a `static` block. Use `static this()`
fail_compilation/fail7443.d(12): Error: `shared static` has no effect on a constructor inside a `shared static` block. Use `shared static this()`
---
*/
class Foo
{
public static { this() {}}
public shared static { this() {}}
public {this(int) {}}
}