Create from Usage: Use function form when rendering FunctionN types
#KT-7522 Fixed
This commit is contained in:
Vendored
+1
-1
@@ -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) {
|
||||
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -4,6 +4,6 @@ fun test() {
|
||||
val a = Foo { p: Int -> p + 1 }
|
||||
}
|
||||
|
||||
class Foo(function: Function1<Int, Int>) {
|
||||
class Foo(function: (Int) -> Int) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user