Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar57040259.swift
Doug Gregor c4ed40dc15 [Type checker] Fix crash with invalid overriding property.
When an overriding property containing willSet or didSet is not within
a type, the type checker could crash due to a missing "self"
declaration. Check this condition. Fixes rdar://problem/57040259.
2019-11-22 15:38:05 -08:00

10 lines
152 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
class A { }
class B: A {
func foo(_: () -> ()) {
override var prop: Any? {
didSet { }
}
}