Mercurial > projects > ldc
diff gen/classes.cpp @ 639:8aebdf56c455
Move check for access of context for nested class from backend into frontend.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 02 Oct 2008 23:12:19 +0200 |
parents | 26fce59fe80a |
children | c42173b3557b |
line wrap: on
line diff
--- a/gen/classes.cpp Thu Oct 02 03:38:29 2008 +0200 +++ b/gen/classes.cpp Thu Oct 02 23:12:19 2008 +0200 @@ -842,12 +842,6 @@ Logger::println("Resolving nested context"); LOG_SCOPE; - if (gIR->func()->decl->isStatic()) - { - newexp->error("function %s is static and cannot access nested class %s", gIR->func()->decl->toPrettyChars(), tc->sym->toPrettyChars()); - fatal(); - } - // get context LLValue* nest = DtoNestedContext(loc, tc->sym);