colon after version is ignored

Carlos Santander csantander619 at gmail.com
Tue Jun 20 21:29:16 PDT 2006


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



More information about the Digitalmars-d-bugs mailing list