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:
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
import kotlin.jvm.internal.*;
|
||||
|
||||
public interface IntrinsicCompanionObject {
|
||||
void testInt(IntCompanionObject i);
|
||||
void testChar(CharCompanionObject c);
|
||||
void testString(StringCompanionObject s);
|
||||
void testEnum(EnumCompanionObject e);
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user