[SR-10761] swiftc crash (regression from 4.2): protocol inheriting a protocol imported via @testable and redefining an inherited property #53151
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
regression
swift 5.0
Attachment: Download
Environment
macOS 10.14.6 Beta (18G29g)
Swift trunk snapshot May 21
Additional Detail from JIRA
md5: 4bb05246cf74782cf73a99aad36ac4f7
Issue Description:
The attached archive (bug.zip) contains a Swift PM project that defines a library target (“TheModule”) and a test target (“TheModuleTests”).
The library TheModule defines a single protocol containing a single get-only property. This is the entire source of the library TheModule:
The test target TheModuleTests imports TheModule with
@testable
. It defines a protocol that inherits from the protocol in TheModule and redefines the property to be get-and-set. This is the entire source of the test target TheModuleTests:swiftc
crashes while compiling the test target:The test target compiles successfully using Swift 4.2:
The text was updated successfully, but these errors were encountered: