mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
350 B
D
22 lines
350 B
D
/*
|
|
REQUIRED_ARGS: -check=invariant=off
|
|
TEST_OUTPUT:
|
|
----
|
|
fail_compilation/test20626.d(2): Error: expression `__unittest_L1_C1` has no type
|
|
_error_
|
|
const void()
|
|
----
|
|
|
|
https://issues.dlang.org/show_bug.cgi?id=20626
|
|
*/
|
|
|
|
#line 1
|
|
unittest {}
|
|
pragma(msg, typeof(__unittest_L1_C1));
|
|
|
|
struct S
|
|
{
|
|
invariant {}
|
|
}
|
|
|
|
pragma(msg, typeof(S.init.__invariant1));
|