Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail3731.d
blob: c2903bb73c288c597ca6bc4a3ef4ae730441cc69 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail3731.d(13): Error: cannot implicitly convert expression `x` of type `immutable(D)` to `fail3731.main.C`
---
*/
void
main
()
{
class
C
{}
class
D
:
C
{}
auto
x
=
new
immutable
(
D
);
C y
=
x
;
}