blob: 57a6bdc2918b9de95fa761e22273779447b84b45 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail195.d(22): Error: struct Foo does not overload ()
---
*/
// 1384 Compiler segfaults when using struct variable like a function with no opCall member.
struct Foo
{
union
{
int a;
int b;
}
}
void bla()
{
Foo next;
next(); // Error: structliteral has no effect in expression (Foo(0))
}