[SR-10306] Runtime Error while using key paths with internal attributes exposed via @testable import #52706
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
key paths
Feature: key paths (both native and Objective-C)
regression
swift 5.0
Attachment: Download
Additional Detail from JIRA
md5: 2aef9a3fddacd07e909d7d9914501484
duplicates:
Issue Description:
Getting "EXC_BAD_ACCESS (code=1, address=0xfffffffb)" when trying to access fields that are marked internal via key paths when using @testable import. I'm not sure if this is an XCode or Swift bug. This behavior worked correctly on XCode 10.1 but now seems broke on 10.2. Attached is a project that illustrates the issue. The ViewControllerTests will crash when run unless you change the SuperHero class to be public and change all the attributes to be public.
SwitchToBoolean.zip
The text was updated successfully, but these errors were encountered: