[SR-9807] Swift 5: KeyPath<Subclass, V> crashes for let
properties inherited from superclass
#52227
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
key paths
Feature: key paths (both native and Objective-C)
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Swift 5 (Xcode 10.2 beta (10P82s))
Additional Detail from JIRA
md5: 1f598435ac9c59fb6c9daccbf4a3291c
Issue Description:
To illustrate the issue, here is a "working" example: (note use of
var
)Making the property
let
instead causes a runtime crash on the\Sub.val
access:The latter example runs fine on Swift 4.2 but breaks on Swift 5.
The text was updated successfully, but these errors were encountered: