Fix test for frontend versions < 2.072.x.

This commit is contained in:
Sönke Ludwig 2018-01-18 00:34:53 +01:00
parent 3709a2298f
commit 445f1ef365

View file

@ -637,10 +637,11 @@ static if (__VERSION__ >= 2072) {
}
unittest { // issue #13
struct S1 { int foo; }
struct S1 { Void dummy; int foo; }
struct S {
struct T { TaggedAlgebraic!S1 foo() { return TaggedAlgebraic!S1(42); } }
struct U { string foo() { return "foo"; } }
Void dummy;
T t;
U u;
}