mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
14 lines
230 B
Kotlin
14 lines
230 B
Kotlin
|
|
sealed interface Foo {}
|
|
interface Bar: Foo {}
|
|
interface Baz: Foo {}
|
|
|
|
private fun someFun(v: Foo) {
|
|
// This doesn't generate a throw statement in Kotlin 1 mode
|
|
when (v) {
|
|
is Bar -> {}
|
|
is Baz -> {}
|
|
}
|
|
}
|
|
|