blob: bd0bed8a85a789b56d0ef888fec6c0bb937b86be [file] [log] [blame]
/*
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));