mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
258 B
D
16 lines
258 B
D
// https://issues.dlang.org/show_bug.cgi?id=23236
|
|
// can't initialize a @mustuse member in constructor
|
|
|
|
import core.attribute;
|
|
|
|
@mustuse struct MyError { }
|
|
|
|
struct S
|
|
{
|
|
MyError lastError;
|
|
|
|
this(int x)
|
|
{
|
|
this.lastError = MyError();
|
|
}
|
|
}
|