Revert "Workaround for KT-37302"

This reverts commit ae208f58a4.
Issue fixed, workaround no longer needed.
This commit is contained in:
Georgy Bronnikov
2020-03-27 10:29:35 +03:00
parent cd440841a5
commit b0d96eb140
@@ -188,13 +188,12 @@ internal abstract class KCallableImpl<out R> : KCallable<R> {
private fun defaultPrimitiveValue(type: Type): Any? =
if (type is Class<*> && type.isPrimitive) {
@Suppress("RemoveRedundantCallsOfConversionMethods")
when (type) {
Boolean::class.java -> false
Char::class.java -> 0.toChar()
Byte::class.java -> 0.toByte()
Short::class.java -> 0.toShort()
Int::class.java -> 0.toInt() // .toInt() conversion is workaround for KT-37302
Int::class.java -> 0
Float::class.java -> 0f
Long::class.java -> 0L
Double::class.java -> 0.0