KT-2729 Warn on 'T?' where 'T' has a nullable upper bound

This commit is contained in:
Andrey Breslav
2012-10-19 18:38:26 +04:00
parent 80039d8533
commit e8bd42b691
18 changed files with 63 additions and 20 deletions
@@ -86,6 +86,6 @@ fun <T> joinG(x : Int, vararg a : T) : String {
return b.toString()
}
fun <T> joinT(<!UNUSED_PARAMETER!>x<!> : Int, vararg <!UNUSED_PARAMETER!>a<!> : T) : T? {
fun <T: Any> joinT(<!UNUSED_PARAMETER!>x<!> : Int, vararg <!UNUSED_PARAMETER!>a<!> : T) : T? {
return null
}