[Issue 5460] enum of struct not calling constructor
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  4 07:33:28 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5460
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-01-04 07:33:27 PST ---
The following has now changed into a CT error:
enum Sizes : Size {
    Minimum = Size(10)
}
struct Size {
   int store;
}
void main()
{
}
test.d(4): Error: Integer constant expression expected instead of Size(10)
test.d(4): Error: Integer constant expression expected instead of Size(10)
-- 
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