Approximating flexible types in decompiled text

This commit is contained in:
Pavel V. Talanov
2014-10-27 17:06:07 +03:00
parent b728ba2b1e
commit 3b59a513b0
5 changed files with 44 additions and 0 deletions
@@ -0,0 +1,12 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package test
internal abstract class FlexibleTypes() {
internal abstract val p: kotlin.Int? /* platform type */
internal abstract fun collection(): kotlin.List<kotlin.Any> /* platform type */
internal final fun withBody(): kotlin.Int? /* platform type */ { /* compiled code */ }
}
@@ -0,0 +1,11 @@
package test
import kotlin.internal.flexible.ft
abstract class FlexibleTypes() {
abstract fun collection(): ft<List<Int>, List<Any>>
abstract val p: ft<Int, Int?>
fun withBody(): ft<Int, Int?> { return 1 }
}
@@ -0,0 +1,3 @@
package kotlin.internal.flexible
class ft<L, U>