Removed hack for Repl

This commit is contained in:
Valentin Kipyatkov
2015-10-26 22:29:02 +03:00
parent 91ff27f78c
commit 78f0de3de5
@@ -303,11 +303,6 @@ fun LexicalScope.addImportingScope(importScope: ImportingScope): LexicalScope
= addImportingScopes(listOf(importScope))
fun ImportingScope.withParent(newParent: ImportingScope?): ImportingScope {
// TODO: it's a hack for Repl
if (this is MemberScopeToImportingScopeAdapter) {
return MemberScopeToImportingScopeAdapter(newParent, memberScope)
}
return object: ImportingScope by this {
override val parent: ImportingScope?
get() = newParent