mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Formal access alone does not take into account @testable imports of internal types. This prevented otherwise valid conditional conformances of these types from compiling. rdar://72875683
10 lines
390 B
Swift
10 lines
390 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module-path %t/catch22.swiftmodule %S/Inputs/conditional-conformance-catch22.swift -module-name catch22 -enable-testing
|
|
// RUN: %target-swift-frontend -typecheck %s -I %t
|
|
|
|
@testable import catch22
|
|
|
|
extension Catch22: Comparable where Value: Comparable {
|
|
public static func <(lhs: Catch22, rhs: Catch22) -> Bool { true }
|
|
}
|