2.071.0 import article
import ex1_b; | |
void main() | |
{ | |
ex1_a.foo(); | |
} |
import ex2_a; | |
void main() | |
{ | |
printf(""); | |
} |
import std.range; | |
void main() | |
{ | |
import std.stdio : write; | |
std.stdio.writeln("hello"); // not actually imported | |
} |
void main() | |
{ | |
int foo = 5; | |
{ | |
import ex4_a; | |
assert(foo == 5); // fails with dmd prior to 2.071.0 | |
} | |
} |
import ex5_a; | |
class C | |
{ | |
mixin foo; | |
void bar() | |
{ | |
writeln("hello"); // error, writeln symbol not found | |
} | |
} | |
void main() | |
{ | |
auto c = new C; | |
c.foo(); | |
c.bar(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment