Files
kotlin-fork/compiler/testData/codegen/box/operatorConventions/kt39880.kt
T

13 lines
323 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR, JS_IR, JS_IR_ES6, NATIVE, WASM
// FIR status: Disabling of StrictOnlyInputTypesChecks is not supported by FIR
// WITH_STDLIB
// !LANGUAGE: -StrictOnlyInputTypesChecks
fun foo(fn: () -> Boolean) {}
fun box(): String {
foo { 1 in setOf("1") }
val a = 1 in setOf("1")
return "OK"
}