On Monday, 18 December 2017 at 23:44:46 UTC, Michael wrote:

alias a = s.i; // illegal, s.i is an expression

Actually, as I understand it, the example provided in 10. is legal (because it aliases a type), and the example provided in 3. is illegal (because it aliases an expression)

perhaps the examples in 10 and 3 should be swapped.

https://dlang.org/spec/declaration.html#alias

Reply via email to