Bug 10655 – Error: recursive alias declaration

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-16T17:32:06Z
Last change time
2018-07-22T14:42:21Z
Assigned to
No Owner
Creator
thelastmammoth

Comments

Comment #0 by thelastmammoth — 2013-07-16T17:32:06Z
---- //OK: alias T=typeof(x); T x0; @property auto x(){ return 1.1; } //NG: struct A{ alias T=typeof(x); //Error: alias main.A.T recursive alias declaration T x0; @property auto x(){ return 1.1; } } ----
Comment #1 by simen.kjaras — 2018-07-22T14:42:21Z
Works on 2.079.1 and 2.081.1 on windows.