mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
204 B
D
19 lines
204 B
D
// https://issues.dlang.org/show_bug.cgi?id=23497
|
|
|
|
class A {}
|
|
|
|
A getA(T t) {
|
|
return t.a;
|
|
}
|
|
|
|
struct T {
|
|
A _a;
|
|
|
|
void k() {}
|
|
|
|
auto a() in {
|
|
k();
|
|
} do {
|
|
return _a;
|
|
}
|
|
}
|