diagnostics for deprecated syntax of function type parameter list
This commit is contained in:
+1
-1
@@ -55,6 +55,6 @@ fun rr(s: String?) {
|
||||
}
|
||||
|
||||
//from library
|
||||
fun arrayListOf<T>(vararg <!UNUSED_PARAMETER!>values<!>: T): MutableList<T> = throw Exception()
|
||||
fun <T> arrayListOf(vararg <!UNUSED_PARAMETER!>values<!>: T): MutableList<T> = throw Exception()
|
||||
|
||||
fun use(vararg a: Any) = a
|
||||
@@ -35,6 +35,6 @@ public data class Tag(public var tagName: String) {
|
||||
//from library
|
||||
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = this.put(key, value)
|
||||
|
||||
fun arrayListOf<T>(vararg <!UNUSED_PARAMETER!>values<!>: T): MutableList<T> = throw Exception()
|
||||
fun <T> arrayListOf(vararg <!UNUSED_PARAMETER!>values<!>: T): MutableList<T> = throw Exception()
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ fun test1(a: Any) {
|
||||
}
|
||||
|
||||
|
||||
fun f<T>(t :T): C<T> = C(t)
|
||||
fun <T> f(t :T): C<T> = C(t)
|
||||
|
||||
fun test2(a: Any) {
|
||||
if (a is String) {
|
||||
|
||||
Reference in New Issue
Block a user