[FIR] KT-57095: Allow X? -> * assignments in unification
^KT-57095 Fixed Merge-request: KT-MR-9180 Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
9de86c03b7
commit
d639215084
@@ -0,0 +1,9 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-57095
|
||||
|
||||
open class ValueType<T> {
|
||||
class Optional<T>: ValueType<T?>()
|
||||
}
|
||||
private fun checkType(type: ValueType<*>) {
|
||||
type as ValueType.Optional // K1: ok, K2: NO_TYPE_ARGUMENTS_ON_RHS
|
||||
}
|
||||
Reference in New Issue
Block a user