blob: 4d79b0c2590f21ee2a095a2f181eef0d93899d63 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail6107.d(10): Error: variable fail6107.Foo.__ctor is not a constructor; identifiers starting with __ are reserved for the implementation
fail_compilation/fail6107.d(14): Error: variable fail6107.Bar.__ctor is not a constructor; identifiers starting with __ are reserved for the implementation
---
*/
struct Foo
{
enum __ctor = 4;
}
class Bar
{
int __ctor = 4;
}