Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/smartcasts/invokeRecieverUnsafe.kt
T
2023-12-08 14:32:22 +00:00

15 lines
211 B
Kotlin
Vendored

// SKIP_TXT
// ISSUE: KT-63709
operator fun Int.invoke(unused: Int) {}
fun test1(a: Int?) {
<!UNSAFE_CALL!>a<!>(a!!)
}
fun test2(a: Int?) {
with (a) {
<!UNSAFE_CALL!>invoke<!>(this!!)
}
}