Create from Usage: Use function form when rendering FunctionN types

#KT-7522 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-29 18:42:44 +03:00
parent 605802847a
commit 1d83d75a82
8 changed files with 55 additions and 20 deletions
@@ -4,6 +4,6 @@ fun test() {
val a = Foo(2, "2") { p: Int -> p + 1 }
}
class Foo(i: Int, s: String, function: Function1<Int, Int>) {
class Foo(i: Int, s: String, function: (Int) -> Int) {
}
@@ -4,6 +4,6 @@ fun test() {
val a = Foo { p: Int -> p + 1 }
}
class Foo(function: Function1<Int, Int>) {
class Foo(function: (Int) -> Int) {
}