mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
16 lines
348 B
D
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;
|
|
}
|