diagnostics for deprecated syntax of function type parameter list
This commit is contained in:
+3
-3
@@ -1,14 +1,14 @@
|
||||
// FILE: foo.kt
|
||||
package foo
|
||||
|
||||
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
|
||||
fun <T> f(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
import foo.*
|
||||
|
||||
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
|
||||
fun <T> f(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
|
||||
|
||||
fun test<T>(l: List<T>) {
|
||||
fun <T> test(l: List<T>) {
|
||||
<!CANNOT_COMPLETE_RESOLVE!>f<!>(l)
|
||||
}
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS -UNUSED_PARAMETER
|
||||
fun f1<T>(l: <!UNRESOLVED_REFERENCE!>List1<!><T>): T {throw Exception()} // ERROR type here
|
||||
fun f1<T>(l: <!UNRESOLVED_REFERENCE!>List2<!><T>): T {throw Exception()} // ERROR type here
|
||||
fun f1<T>(c: Collection<T>): T{throw Exception()}
|
||||
fun <T> f1(l: <!UNRESOLVED_REFERENCE!>List1<!><T>): T {throw Exception()} // ERROR type here
|
||||
fun <T> f1(l: <!UNRESOLVED_REFERENCE!>List2<!><T>): T {throw Exception()} // ERROR type here
|
||||
fun <T> f1(c: Collection<T>): T{throw Exception()}
|
||||
|
||||
fun test<T>(l: List<T>) {
|
||||
fun <T> test(l: List<T>) {
|
||||
<!CANNOT_COMPLETE_RESOLVE!>f1<!>(l)
|
||||
}
|
||||
Reference in New Issue
Block a user