Do not allow inference of type arguments on the rhs if there's no information available
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
trait Tr<T>
|
||||
trait G<T> : Tr<T>
|
||||
|
||||
fun test(tr: Tr<String>?) {
|
||||
val v = tr as G?
|
||||
// If v is not nullable, there will be a warning on this line:
|
||||
v!!: G<String>
|
||||
}
|
||||
Reference in New Issue
Block a user