mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When synthesizing the witness for Error._code, synthesize it as final. This isn't meant to be user-visible (and, therefore, isn't meant to be user-overridable), so it's a minor efficiency win. Moreover, we weren't making sure this member got synthesized in in cross-module situations, leading to runtime crashes. Fixes rdar://problem/27335637.
7 lines
76 B
Swift
7 lines
76 B
Swift
// Parse of the 'errors' test.
|
|
import Swift
|
|
|
|
class OtherError : Error { }
|
|
|
|
|