Lookahead in unittest

Raiderium via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 10 09:09:06 PDT 2017


Heyo,

On 2.074.0, the following test fails with "Error: undefined 
identifier 'B' "

unittest
{
	class A { B b; }
	class B { }
}

I can't figure out if this is intended behaviour. It's making a 
template-heavy module difficult to test. Would appreciate any 
help.

First post here, be gentle :)


More information about the Digitalmars-d-learn mailing list