dmd/compiler/test/fail_compilation/fail12901.d
2022-07-09 18:53:07 +02:00

14 lines
283 B
D

/*
TEST_OUTPUT:
---
fail_compilation/fail12901.d(11): Error: constructor `fail12901.S.this` `in` and `out` contracts can only appear without a body when they are virtual interface functions or abstract
---
*/
struct S
{
int a;
this(int n)
in { a = n; }
// no body
}