Files
kotlin-fork/idea/testData/inspectionsLocal/branched/introduceWhenSubject/qualified4.kt
T
2019-09-27 08:26:52 +03:00

14 lines
195 B
Kotlin
Vendored

class Foo {
val bar = 1
}
const val A = 1
const val B = 2
fun test(foo: Foo): Int {
return <caret>when {
A == foo.bar -> 10
B == foo.bar -> 20
else -> 30
}
}