KT-1056 Don't allow passing type arguments to T

#KT-1056 Fixed
This commit is contained in:
Andrey Breslav
2014-11-04 10:22:13 +02:00
parent 35766dfa20
commit 8436147cec
5 changed files with 35 additions and 2 deletions
@@ -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<!>>><!>) {}