IR: slightly fix kotlin-like dumping of super qualifiers
This commit is contained in:
@@ -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
@@ -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 ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -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 */
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user