Decompiler: do not try to render function types with star projections prettily

This commit is contained in:
Pavel V. Talanov
2015-06-30 20:45:20 +03:00
parent 8fcbd44ad4
commit 9a9d70fd98
7 changed files with 105 additions and 3 deletions
@@ -4,6 +4,14 @@
package test
internal final class FunctionTypes public constructor() {
public final fun f1(f: kotlin.Function1<*, *>): kotlin.Unit { /* compiled code */ }
public final fun f2(f: kotlin.Function2<kotlin.Int, *, kotlin.String>): kotlin.Unit { /* compiled code */ }
public final fun f3(f: kotlin.Int.(kotlin.Int) -> kotlin.Unit): kotlin.Unit { /* compiled code */ }
public final fun f4(f: kotlin.List<kotlin.Function1<*, *>>): kotlin.Unit { /* compiled code */ }
public final fun <A> (A.(A) -> A)?.bar(): kotlin.Unit { /* compiled code */ }
public final fun <IP, R, P1> ((IP) -> R).compose(f: (P1) -> IP): (P1) -> R { /* compiled code */ }
@@ -14,4 +14,16 @@ class FunctionTypes {
public fun <A> (A.(A) -> A)?.bar() {
}
public fun f1(f: Function1<*, *>) {
}
public fun f2(f: Function2<Int, *, String>) {
}
public fun f3(f: @extension Function2<Int, Int, Unit>) {
}
public fun f4(f: List<@extension Function1<*, *>>) {
}
}