mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
305 B
D
20 lines
305 B
D
// REQUIRED_ARGS: -g
|
|
|
|
struct Bug7127a {
|
|
const(Bug7127a)* self;
|
|
}
|
|
|
|
struct Bug7127b {
|
|
void function(const(Bug7127b) self) foo;
|
|
}
|
|
|
|
void main() {
|
|
Bug7127a a;
|
|
Bug7127b b;
|
|
}
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=13975
|
|
static immutable int a = 8;
|
|
enum Bar { aa = a }
|
|
|
|
void foo(Bar bar) {}
|