[JS IR BE] Fix name clash between top-level fields

This commit is contained in:
Roman Artemev
2018-10-23 19:11:35 +03:00
committed by romanart
parent 91ea377622
commit 9515de0b7e
6 changed files with 2 additions and 5 deletions
@@ -132,6 +132,8 @@ class SimpleNameGenerator : NameGenerator {
if (declaration.parent is IrDeclaration) {
nameBuilder.append('.')
nameBuilder.append(getNameForDeclaration(declaration.parent as IrDeclaration, context))
} else {
nameDeclarator = context.staticContext.rootScope::declareFreshName
}
}
is IrClass -> {