class DebugInfo
{
typedef int CVHeaderType ;
enum anon:CVHeaderType{ CV_NONE, CV_DOS, CV_NT, CV_DBG }
}
Error: no property 'max' for type 'CVHeaderType'
Error: no property 'max' for type 'CVHeaderType'
testdmd.d(4): enum testdmd.DebugInfo.anon overflow of enum value cast(anon)cast(CVHeaderType)1
Error: no property 'max' for type 'CVHeaderType'
error message doesn't give line number at first, and nonsensual.
The code should be valid.