1 // https://issues.dlang.org/show_bug.cgi?id=22054
6 fail_compilation/fail22054.d(23): Error: no property `what` for type `fail22054.exception`
7 fail_compilation/fail22054.d(18): `class fail22054.exception` is opaque and has no members.
8 fail_compilation/fail22054.d(18): class `exception` defined here
9 fail_compilation/fail22054.d(24): Error: no property `what` for type `fail22054.exception2`
10 fail_compilation/fail22054.d(19): `struct fail22054.exception2` is opaque and has no members.
11 fail_compilation/fail22054.d(19): struct `exception2` defined here
23 assert(exception
.what() == "Hello");
24 assert(exception2
.what() == "Hello");