Files
swift-mirror/test/Compatibility/attr_final_protocol_extension.swift

9 lines
301 B
Swift

// RUN: %target-typecheck-verify-swift -swift-version 3
// Generate a swift 3 compatible warning if final is specified in an extension
protocol P {}
extension P {
final func inExtension() {} // expected-warning{{functions in a protocol extension do not need to be marked with 'final'}} {{3-9=}}
}