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

16 lines
348 B
D

/*
TEST_OUTPUT:
---
fail_compilation/ice16657.d(9): Error: function `ice16657.RefCounted.refCountedPayload` has no `return` statement, but is expected to return a value of type `inout(RefCounted)`
---
*/
struct RefCounted
{
inout(RefCounted) refCountedPayload() inout { }
alias refCountedPayload this;
}
struct Store
{
RefCounted p;
}