IR: slightly fix kotlin-like dumping of super qualifiers

This commit is contained in:
Mikhail Glukhikh
2022-06-15 12:04:59 +02:00
committed by Space
parent b0a6508d4b
commit 8ae47d4c4d
35 changed files with 95 additions and 68 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class Owner<out T : JCTree> {
get(): String {
var tree: JCTree = <this>.<get-tree>()
when {
tree is JCTypeApply -> return tree /*as JCTypeApply */super.#clazz /*!! String */
tree is JCTypeApply -> return tree /*as JCTypeApply */(super<JCTypeApply>).#clazz /*!! String */
}
return ""
}
+2 -1
View File
@@ -14,10 +14,11 @@ class Owner<out T : JCTree> {
var tree: JCTree = <this>.<get-tree>()
when {
tree is JCTypeApply -> { // BLOCK
return tree /*as JCTypeApply */super.#clazz /*!! String */
return tree /*as JCTypeApply */(super<JCTypeApply>).#clazz /*!! String */
}
}
return ""
}
}
@@ -1,6 +1,7 @@
fun foo(movedPaths: MutableList<Couple<FilePath>>) {
movedPaths.forEach<Couple<FilePath>>(action = local fun <anonymous>(it: Couple<FilePath>) {
itsuper.#second.getName() /*~> Unit */
it(super<Pair>).#second.getName() /*~> Unit */
}
)
}
@@ -1,6 +1,7 @@
fun foo(movedPaths: MutableList<Couple<FilePath>>) {
movedPaths.forEach<Couple<FilePath>>(action = local fun <anonymous>(it: Couple<FilePath>) {
itsuper.#second /*!! FilePath */.getName() /*~> Unit */
it(super<Pair>).#second /*!! FilePath */.getName() /*~> Unit */
}
)
}