Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar70739449.swift
Ben Barham ea365d5d18 [TypeChecker] Do not attempt to skip typechecking for didSet
15f8eb45ea (see PR#26632) introduced
refined didSet semantics where the `oldValue` parameter is skipped if it
isn't used. This would perform typechecking, but later try to set the
body to skipped and thus fire an assert.

For now, do not attempt to skip typechecking of didSet accessors. Still
skip outputting their SIL though.
2020-11-05 11:27:38 +10:00

10 lines
192 B
Swift

// RUN: %target-swift-frontend -emit-module %s -experimental-skip-non-inlinable-function-bodies
struct Foo {
var fieldWithDidSet : Int {
didSet {
let local = oldValue
}
}
}