diagnostics for deprecated syntax of function type parameter list
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// KT-422 Tune literal typing rules so that varargs overloaded by primitive types work
|
||||
|
||||
fun foo<T>(vararg t : T) = t
|
||||
fun <T> foo(vararg t : T) = t
|
||||
fun foo(vararg a: Int) = a
|
||||
fun foo(vararg a: Long) = a
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo<T: Any>(vararg <!UNUSED_PARAMETER!>ts<!>: T): T? = null
|
||||
fun <T: Any> foo(vararg <!UNUSED_PARAMETER!>ts<!>: T): T? = null
|
||||
|
||||
class Pair<A>(<!UNUSED_PARAMETER!>a<!>: A)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user