mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
408 B
D
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) {}}
|
|
}
|