[Issue 10708] Class members as template alias parameters not CTFE-able

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 25 01:39:23 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10708



--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-07-25 01:39:22 PDT ---
This isn't actually a CTFE issue. Something weird is happening here, maybe
related to UFCS.
The declaration of c is actually being transformed into:

enum c = this.getAttribute!(TestClass.a);

and that's the 'this' which CTFE is complaining about. Bizarrely, marking the
template as 'static' prevents that incorrect 'this' from being added.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list