diagnostics for deprecated syntax of function type parameter list

This commit is contained in:
Dmitry Jemerov
2015-10-05 20:26:47 +02:00
parent c5d3673b6b
commit 7c20630272
156 changed files with 236 additions and 213 deletions
+1 -1
View File
@@ -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)