Scripting: using kotlin type names instead of java ones
avoids problems with K2 resolving of the java types in unexpected places
This commit is contained in:
committed by
Space Team
parent
ae10eebc84
commit
699ef5490b
@@ -29,7 +29,7 @@ class KotlinType private constructor(
|
|||||||
* Constructs KotlinType from reflected [kclass]
|
* Constructs KotlinType from reflected [kclass]
|
||||||
*/
|
*/
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
constructor(kclass: KClass<*>, isNullable: Boolean = false) : this(kclass.java.name, kclass, isNullable)
|
constructor(kclass: KClass<*>, isNullable: Boolean = false) : this(kclass.qualifiedName ?: error("Cannot use class $kclass as a KotlinType"), kclass, isNullable)
|
||||||
|
|
||||||
// TODO: implement other approach for non-class types
|
// TODO: implement other approach for non-class types
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user