June 21, 2006 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
|
Copyright © 1999-2021 by the D Language Foundation