KT-2729 Warn on 'T?' where 'T' has a nullable upper bound
This commit is contained in:
@@ -7,6 +7,6 @@ import html.* // Must not be an error
|
||||
|
||||
package html
|
||||
|
||||
abstract class Factory<T> {
|
||||
abstract class Factory<T: Any> {
|
||||
fun create() : T? = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user