mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
444 B
Swift
11 lines
444 B
Swift
// RUN: %target-swift-frontend -typecheck -primary-file %s %S/Inputs/enum_raw_representable_explicit_multi_file_2.swift
|
|
// RUN: %target-typecheck-verify-swift -primary-file %S/Inputs/enum_raw_representable_explicit_multi_file_2.swift
|
|
|
|
enum Foo: Int { case A }
|
|
|
|
extension Bar: RawRepresentable {}
|
|
|
|
enum Bas: Int { case A }
|
|
// expected-note@+1 {{'Bas' declares conformance to protocol 'RawRepresentable' here}}
|
|
extension Bas: RawRepresentable {}
|