mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
12 lines
348 B
Kotlin
Vendored
12 lines
348 B
Kotlin
Vendored
// SUGGESTED_NAMES: i, getT
|
|
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_TYPES: kotlin.Int
|
|
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int defined in foo
|
|
// PARAM_DESCRIPTOR: val b: kotlin.Int defined in foo
|
|
// SIBLING:
|
|
fun foo(a: Int): Int {
|
|
val b: Int = 1
|
|
|
|
val t = <selection>if (a > 0) throw Exception("") else a + b</selection>
|
|
return t
|
|
} |