Create Function From Usage: Use Any if error type is inferred

This commit is contained in:
Alexey Sedunov
2014-09-30 13:53:11 +04:00
parent 854962a139
commit e9b16f3e1b
6 changed files with 57 additions and 0 deletions
@@ -0,0 +1,7 @@
// "Create function 'foo' from usage" "true"
fun run<T>(f: () -> T) = f()
fun test() {
run { <caret>foo() }
}