Files
swift-mirror/test/SILGen/Inputs/errors_other.swift
Doug Gregor 6d2f11a305 [Type checker] Synthesize Error._code witnesses as 'final' within a class.
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.
2016-08-01 21:27:51 -07:00

7 lines
76 B
Swift

// Parse of the 'errors' test.
import Swift
class OtherError : Error { }