mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
10 lines
240 B
D
10 lines
240 B
D
/**
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice23781.d(10): Error: variable `b` cannot be read at compile time
|
|
---
|
|
**/
|
|
struct Bar { int i; }
|
|
ref const(Bar) func1 (const return ref Bar b) { return b; }
|
|
immutable E1 = Bar();
|
|
enum E2 = &E1.func1();
|