[Issue 571] class instance member template returns strange value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 30 03:39:03 PDT 2008


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





------- Comment #3 from 2korden at gmail.com  2008-06-30 05:39 -------
Updated test case for D2:

class Test {
  template test(){
    enum int test = 1;  // replace with const for D1
  }
}

void main(){
  printf("%d", (new Test()).test!());
}


-- 



More information about the Digitalmars-d-bugs mailing list