K2: add missing checks for integral parameter type on implicit coercion
#KT-61418 fixed #KT-61442 fixed #KT-61441 fixed
This commit is contained in:
committed by
Space Team
parent
84c6333b23
commit
b821009617
@@ -0,0 +1,18 @@
|
||||
// WITH_STDLIB
|
||||
// !LANGUAGE: +ImplicitSignedToUnsignedIntegerConversion
|
||||
// FILE: signedToUnsignedConversions_annotation.kt
|
||||
|
||||
package kotlin.internal
|
||||
|
||||
annotation class ImplicitIntegerCoercion
|
||||
|
||||
// FILE: kt61418_test.kt
|
||||
|
||||
import kotlin.internal.ImplicitIntegerCoercion
|
||||
|
||||
fun f(@ImplicitIntegerCoercion x: List<Int>) {}
|
||||
|
||||
fun box(): String {
|
||||
f(listOf(1,2,3))
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user