Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
@@ -5,7 +5,7 @@ package foo
|
||||
// A copy of stdlib run function.
|
||||
// Copied to not to depend on run implementation.
|
||||
// It's important, that the body is just `return fn()`.
|
||||
internal inline fun evaluate<T>(fn: ()->T): T = fn()
|
||||
internal inline fun <T> evaluate(fn: ()->T): T = fn()
|
||||
|
||||
internal fun test(n: Int): Int {
|
||||
return evaluate {
|
||||
|
||||
Reference in New Issue
Block a user