mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
16 lines
451 B
D
16 lines
451 B
D
// REQUIRED_ARGS: -preview=dip1000 -preview=dip1008 -Ifail_compilation/extra-files
|
|
// https://issues.dlang.org/show_bug.cgi?id=20023
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/imports/test20023b.d(8): Error: returning scope variable `e` is not allowed in a `@safe` function
|
|
fail_compilation/test20023.d(15): Error: template instance `imports.test20023b.threw!()` error instantiating
|
|
---
|
|
*/
|
|
import imports.test20023b;
|
|
|
|
@safe:
|
|
void main()
|
|
{
|
|
threw!()();
|
|
}
|