-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself
Description
| Previous ID | SR-6838 |
| Radar | rdar://problem/36876376 |
| Original Reporter | @dcci |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug |
| Assignee | @dcci |
| Priority | Medium |
md5: c650c29aa9f121dd72eddfc9dc4a2db7
Issue Description:
struct m {
let major: Int
let minor: Int
let n: Int
let o: [String]
let p: [String]
init(
major: Int,
minor: Int,
n: Int,
o: [String],
p: [String]
) {
self.major = major
self.minor = minor
self.n = n
self.o = o
self.p = p
}
}
enum a {
case any
case b(m)
}
struct c<e> {
enum f{
case g(a)
}
}
struct h<i>{
typealias j = i
typealias d = j
typealias f = c<d>.f
subscript(identifier: d) -> f {
return .g(.any)
}
func k(
l: f, identifier: d
) -> h{
switch (l, self[identifier]) {
default:
return self
}
}
}cmdline:
./swift -frontend blah.swift -Onone -emit-ir -sil-verify-all -Xllvm -verify-di-holescc: @adrian-prantl/@vedantk/shajrawi (JIRA User)
On my plate, once I'm done with the resilience lldb work 🙂
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itself