298a075381
Removed declaration for functions: TODO, run, with, apply, let.
20 lines
443 B
Kotlin
Vendored
20 lines
443 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
fun foo(arg: Int?) = run {
|
|
var x = arg
|
|
if (x == null) return@run
|
|
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
|
}
|
|
|
|
class My {
|
|
fun foo(arg: Int?) = run {
|
|
var x = arg
|
|
if (x == null) return@run
|
|
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
|
}
|
|
|
|
fun Int?.bar() = run {
|
|
var x = this
|
|
if (x == null) return@run
|
|
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
|
|
}
|
|
} |