fdf9acfb6a
#KT-18772 Fixed
13 lines
290 B
Kotlin
Vendored
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 {
|
|
moduleInfo.platform == JvmPlatform -> 1
|
|
else -> 0
|
|
} |