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

13 lines
290 B
Kotlin
Vendored

import Platform.JvmPlatform
sealed class Platform {
object JvmPlatform : Platform()
class Another(val name: String) : Platform()
}
class ModuleInfo(val platform: Platform)
fun foo(moduleInfo: ModuleInfo) = <caret>when {
JvmPlatform == moduleInfo.platform -> 1
else -> 0
}