KT-1056 Don't allow passing type arguments to T
#KT-1056 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun <T> foo(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><String, Int><!>) {}
|
||||
|
||||
trait A
|
||||
class B<T: A>
|
||||
fun <T> foo1(t: T<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!><B<<!UPPER_BOUND_VIOLATED!>String<!>>><!>) {}
|
||||
Reference in New Issue
Block a user