fun checkSubtype(t: T) = t fun test() { checkSubtype(1) checkSubtype(1) checkSubtype(1) 1 as Byte 1 as Int 1 as Double }