mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
366 B
D
19 lines
366 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice4094.d(11): Error: circular reference to variable `ice4094.Zug!0.Zug.bahn`
|
|
fail_compilation/ice4094.d(19): Error: template instance `ice4094.Zug!0` error instantiating
|
|
---
|
|
*/
|
|
// REQUIRED_ARGS: -d
|
|
struct Zug(int Z)
|
|
{
|
|
const bahn = Bug4094!(0).hof.bahn;
|
|
}
|
|
|
|
struct Bug4094(int Q)
|
|
{
|
|
Zug!(0) hof;
|
|
}
|
|
|
|
const a = Zug!(0).bahn;
|