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,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)
}
@@ -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)
}