Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
@@ -8,9 +8,9 @@ fun Int.foo2(): (i: Int) -> Int {
|
||||
return { x -> x + this }
|
||||
}
|
||||
|
||||
fun fooT1<T>(t: T) = { t.toString() }
|
||||
fun <T> fooT1(t: T) = { t.toString() }
|
||||
|
||||
fun fooT2<T>(t: T) = { x: T -> t.toString() + x.toString() }
|
||||
fun <T> fooT2(t: T) = { x: T -> t.toString() + x.toString() }
|
||||
|
||||
fun box(): Any? {
|
||||
if ( (10.foo1())() != "23910") return "foo1 fail"
|
||||
|
||||
Reference in New Issue
Block a user