You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Apr 2, 2019
· 5 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
Sample code produced and tested inside playground (issue originally discovered in project)
Additional Detail from JIRA
Votes
0
Component/s
Compiler
Labels
Bug, Runtime
Assignee
None
Priority
Medium
md5: 0458219e22269b8ce331a7dd3fa0b82d
Issue Description:
Creating a typealias that is composed of more than two protocols causes a crash when attempting to use an object, that conforms to all types, to a property of that type. Probably easier to understand with an example, so....
protocolOne { varstring1: String { get } }
extensionOne { varstring1: String { return"string1" } }
protocolTwo { varstring2: String { get } }
extensionTwo { varstring2: String { return"string2" } }
protocolThree { varstring3: String { get } }
extensionThree { varstring3: String { return"string3" } }
typealiasOneAndTwo = One & TwotypealiasAllThree = One & Two & ThreeclassStringy: One & Two {}
classStringier: One & Two & Three {}
varfirstTwo: OneAndTwo.Type = Stringy.self// Works finevarallThree: AllThree.Type = Stringier.self// Crashes
Worth noting: if I use `Stringier` in place of `Stringy` on the "Works fine" line, it doesn't crash.
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfruntimeThe Swift Runtime
Environment
MacBook Pro (15-inch, 2018)
Processor: 2.6 GHz Intel Core i7
Memory: 16GB 2400 MHz DDR4
Graphics: Radeon Pro 560X 4 GB
macOS 10.14.4
Xcode 10.1 (10B61)
Sample code produced and tested inside playground (issue originally discovered in project)
Additional Detail from JIRA
md5: 0458219e22269b8ce331a7dd3fa0b82d
Issue Description:
Creating a typealias that is composed of more than two protocols causes a crash when attempting to use an object, that conforms to all types, to a property of that type. Probably easier to understand with an example, so....
Worth noting: if I use `Stringier` in place of `Stringy` on the "Works fine" line, it doesn't crash.
The text was updated successfully, but these errors were encountered: