mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 05:13:14 +01:00
The test case that would previously crash:
a.d
---
module a;
@property bool empty(T)(in T[] a) {
return !a.length;
}
void find(alias pred,R1)(R1 haystack) {
simpleMindedFind!pred(haystack);
}
void simpleMindedFind(alias pred, R1)(R1 haystack) {
bool haystackTooShort() {
return haystack.empty;
}
}
---
b.d
---
module b;
import c;
void getTimeZone() {
indexOf();
}
---
c.d
---
module c;
import a;
void indexOf()() {
find!({})("");
}
---
26 KiB
26 KiB