Compiler crashes when trying to type-check a class, that overrides its base class' property. Looks like it happens only if BaseClass is generic and SubClass does not specify any type for that generic.
Reproduction
class BaseClass<T> {
public var values: [Float: Int] = [:]
}
class SubClass: BaseClass { // Note missing generic type here.
public var values: [Float: Float] = [:]
}
Description
Compiler crashes when trying to type-check a class, that overrides its base class' property. Looks like it happens only if
BaseClass
is generic andSubClass
does not specify any type for that generic.Reproduction
Stack dump
Expected behavior
The compiler should not crash.
Environment
Apple Swift version 6.0-dev (LLVM de395d39a90ed7a, Swift 490cf64aee23f13) Target: arm64-apple-macosx14.0
Additional information
No response