dmd/compiler/test/fail_compilation/test18607.d
2022-07-09 18:53:07 +02:00

18 lines
368 B
D

/* TEST_OUTPUT:
---
fail_compilation/test18607.d(10): Error: function `test18607.test!int.test` no `return exp;` or `assert(0);` at end of function
& test
---
*/
// https://issues.dlang.org/show_bug.cgi?id=18607
int* test(T...)() pure @safe {
L:foreach(_; T) {
continue L;
return null;
}
}
pragma(msg, &test!(int));