diagnostics for deprecated syntax of function type parameter list
This commit is contained in:
+2
-2
@@ -6,9 +6,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() }
|
||||
|
||||
object t
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
|
||||
|
||||
fun foo<T>(vararg ts: T): T? = null
|
||||
fun <T> foo(vararg ts: T): T? = null
|
||||
|
||||
class Pair<A>(a: A)
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun foo<T>(t: T) {
|
||||
fun <T> foo(t: T) {
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun box(): String {
|
||||
fun foo<T>(t: T) = t
|
||||
fun <T> foo(t: T) = t
|
||||
|
||||
return foo("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user