mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
18 lines
368 B
D
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));
|