diagnostics for deprecated syntax of function type parameter list
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun box() : String {
|
||||
fun foo<T>(t:() -> T) : T = t()
|
||||
fun <T> foo(t:() -> T) : T = t()
|
||||
|
||||
return foo {"OK"}
|
||||
}
|
||||
+1
-1
@@ -16,4 +16,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun run1<T>(f: () -> T): T { return f() }
|
||||
fun <T> run1(f: () -> T): T { return f() }
|
||||
@@ -16,4 +16,4 @@ fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun run1<T>(f: () -> T): T { return f() }
|
||||
fun <T> run1(f: () -> T): T { return f() }
|
||||
Reference in New Issue
Block a user