www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - colon after version is ignored

This is an old one:

//----------------------------
void bar ()
{
         foo ();
}

version(none):
void foo () {}
//----------------------------

Compiles without errors when it should fail with "test.d:3: undefined
identifier 
foo", as it indeed does if the colon is removed.

-- 
Carlos Santander Bernal
Jun 20 2006