mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 00:21:28 +00:00
11 lines
183 B
Kotlin
Vendored
11 lines
183 B
Kotlin
Vendored
fun Any?.foo(): Int {
|
|
this?.let {
|
|
<caret>return 1
|
|
}
|
|
return 2
|
|
}
|
|
|
|
public inline fun <T> T.let(block: (T) -> Unit) {}
|
|
|
|
//HIGHLIGHTED: return 1
|
|
//HIGHLIGHTED: return 2 |