Uast: properly handling annotations on destructured variables (KT-35673, EA-220128)

This commit is contained in:
Nicolay Mitropolsky
2020-01-08 12:51:33 +03:00
parent 9da536c202
commit c04ba009e6
4 changed files with 45 additions and 9 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
fun foo() {
fun foo(data: Any) {
val (a, b) = "foo" to 1
@Suppress("UNCHECKED_CAST")
val (k, v) = data as Pair<String, String>
}