On 9/30/14 2:07 PM, Ali Çehreli wrote:
Apparently, a class definition even inside a unittest blocks are considered to be nested classes. Normally, objects of nested classes are created by the 'this.new' syntax, 'this' meaning the object that wraps the nested class.
I think unit test blocks are actually functions disguised as attributes.
So it makes sense.
void foo()
{
class C {}
auto c = New!C; // same error
}
-Steve
