dmd/compiler/test/fail_compilation/ice9865.d
Nicholas Wilson 13775eb2d1
Fix #18235 - Add offending member to "no size because of forward reference" error (#20557)
Co-authored-by: Nick Treleaven <ntrel002@gmail.com>
2024-12-15 18:23:36 +08:00

11 lines
278 B
D

/*
EXTRA_FILES: imports/ice9865b.d
TEST_OUTPUT:
---
fail_compilation/ice9865.d(10): Error: alias `ice9865.Baz` recursive alias declaration
fail_compilation/ice9865.d(11): error on member `ice9865.Foo.f`
---
*/
public import imports.ice9865b : Baz;
struct Foo { Baz f; }