Map intrinsic companion objects in JavaToKotlinClassMap

Get rid of multiple usages of IntrinsicObjects where JavaToKotlinClassMap was
already used, simplify code, and support loading of *CompanionObject as Kotlin
built-in companions from Java code.

Also fix a small bug where Boolean was considered a class with an intrinsic
companion in IntrinsicObjects, although it was not
This commit is contained in:
Alexander Udalov
2015-04-23 19:33:37 +03:00
parent 987206bf95
commit d2cd7b00bb
12 changed files with 62 additions and 111 deletions

View File

@@ -0,0 +1,8 @@
package test
public trait IntrinsicCompanionObject {
public abstract fun testChar(/*0*/ p0: kotlin.Char.Companion!): kotlin.Unit
public abstract fun testEnum(/*0*/ p0: kotlin.Enum.Companion!): kotlin.Unit
public abstract fun testInt(/*0*/ p0: kotlin.Int.Companion!): kotlin.Unit
public abstract fun testString(/*0*/ p0: kotlin.String.Companion!): kotlin.Unit
}