# HG changeset patch # User Christian Kamm # Date 1221216496 -7200 # Node ID 7690d7065fa8bd639a7709fcd49811187ee27497 # Parent 870652a9af23cf5f39306825f4ca4f0fa6736aff Fix line number for error when trying to new a nested class without a context. diff -r 870652a9af23 -r 7690d7065fa8 gen/classes.cpp --- a/gen/classes.cpp Fri Sep 12 12:39:06 2008 +0200 +++ b/gen/classes.cpp Fri Sep 12 12:48:16 2008 +0200 @@ -836,7 +836,7 @@ if (gIR->func()->decl->isStatic()) { - gIR->func()->decl->error("is static and cannot access nested class %s", tc->sym->toChars()); + newexp->error("function %s is static and cannot access nested class %s", gIR->func()->decl->toPrettyChars(), tc->sym->toPrettyChars()); fatal(); }