Files
2019-01-15 12:35:12 +03:00

10 lines
242 B
Kotlin
Vendored

fun main(args: Array<String>) {
val c = C(1, 2, 3, 4)
val number = when (c) {
match B(e1, e2 @ : Pair if(l > r), e3) @ a: A @ m -> e1 + l + r
match (_, p :Pair, _) -> 20
else -> 40
}
println(number)
}