FIR: Improve rendering for type operators

This commit is contained in:
Simon Ogorodnik
2019-03-14 17:49:34 +03:00
parent 27687602f8
commit 24041828a9
7 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ FILE: lists.kt
}
public final fun R|kotlin/collections/List<kotlin/String>|.convert(): R|MyStringList| {
^convert as/R|MyStringList|(this#)
^convert (this# as R|MyStringList|)
}
public final fun ret(l: R|kotlin/collections/MutableList<kotlin/String>|): R|MyMutableStringList| {
^ret as/R|MyMutableStringList|(this#)
^ret (this# as R|MyMutableStringList|)
}
+1 -1
View File
@@ -2,7 +2,7 @@ FILE: genericFunctions.kt
public abstract interface Any {
}
<reified T : R|Any|> public final inline fun R|Any|.safeAs(): R|T|? {
^safeAs as?/R|T|(this#)
^safeAs (this# as? R|T|)
}
public abstract class Summator {
public constructor(): super<R|kotlin/Any|>()