mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
406 B
D
22 lines
406 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice16035.d(18): Error: forward reference to inferred return type of function call `this.a[0].toString()`
|
|
fail_compilation/ice16035.d(13): Error: template instance `ice16035.Value.get!string` error instantiating
|
|
---
|
|
*/
|
|
|
|
struct Value
|
|
{
|
|
auto toString() inout
|
|
{
|
|
get!string;
|
|
}
|
|
|
|
T get(T)()
|
|
{
|
|
a[0].toString();
|
|
}
|
|
|
|
const(Value)* a;
|
|
}
|