1 // Parsing - expressions
2 auto a
= auto ref (int x
) => x
;
3 auto b
= auto ref (int x
) { return x
; };
4 auto c
= function auto ref (int x
) { return x
; };
5 auto d
= delegate auto ref (int x
) { return x
; };
8 alias e
= auto ref (int x
) => x
;
9 alias f
= auto ref (int x
) { return x
; };
10 alias g
= function auto ref (int x
) { return x
; };
11 alias h
= delegate auto ref (int x
) { return x
; };
16 alias fun(alias x
) = auto ref () => x
;
19 static assert(!__traits(compiles
, &fun
!123())); // rvalue
20 fun
!n() = 456; // lvalue