710659324c
Enable check for error supertypes during CST calculation in classic type system context. Cyclic upper bound + known type parameters of superclasses may create non-error types with error supertypes. Such types don't have common constructors with other normal types and cause assertion errors during intersection. ^KT-36951 Fixed
9 lines
148 B
Kotlin
Vendored
9 lines
148 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class Base<T : T> : HashSet<T>() {
|
|
fun foo() {
|
|
super.remove("")
|
|
}
|
|
}
|