[Issue 657] version(): ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 7 06:41:24 PST 2006


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





------- Comment #1 from afb at algonet.se  2006-12-07 08:41 -------
There is an error with that extra colon, after the version:

version(none)
void foo () {}

none.d:3: undefined identifier foo
none.d:3: function expected before (), not foo of type int

version(none)
{
void foo () {}
}

none.d:3: undefined identifier foo
none.d:3: function expected before (), not foo of type int

However, maybe having the colon should be made an error ?


-- 




More information about the D.gnu mailing list