Relax assertion in parser for a recovery case with annotations

^KT-24937 Fixed
This commit is contained in:
Denis Zharkov
2018-12-10 16:03:45 +03:00
parent 3727fabb0f
commit 5992896d76
8 changed files with 509 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
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)
}