FIR resolve: add handling of companions as objects

This commit is contained in:
Mikhail Glukhikh
2019-04-18 11:28:13 +03:00
parent ab258767f8
commit 7d793f6750
10 changed files with 113 additions and 13 deletions
@@ -43,6 +43,9 @@ class FirJavaClass(
override val declarations = mutableListOf<FirDeclaration>()
override val companionObject: FirRegularClass?
get() = null
override fun replaceSupertypes(newSupertypes: List<FirTypeRef>): FirRegularClass {
superTypeRefs.clear()
superTypeRefs.addAll(newSupertypes)