changeset 589:7690d7065fa8

Fix line number for error when trying to new a nested class without a context.
author Christian Kamm <kamm incasoftware de>
date Fri, 12 Sep 2008 12:48:16 +0200
parents 870652a9af23
children 1ecb43102d12
files gen/classes.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();
         }