Am I doing something wrong here? (e.g. Is there some extra syntax I'm supposed to provide to hint the compiler so it can complete?) Or should I file a bug somewhere?
Given:
enum MyEnum: ~Copyable{
case nothing
case myUrl(URL)
}
Xcode compiler runs forever:
func foo(_ bar: consuming MyEnum) {
switch consume bar {
case .nothing:
return
case .myUrl(let url):
return
}
}
Xcode compile completes:
func foo(_ bar: consuming MyEnum) {
switch consume bar {
case .nothing:
return
default:
return
}
}
If I change URL
to String
or even NSURL
it's happy.