mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Android CI do not run the executable tests because there's no device attached, but this test was not marked to be skipped, and it broke the Android CI.
25 lines
703 B
Swift
25 lines
703 B
Swift
// RUN: %target-run-simple-swift | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
public class BaseView { }
|
|
public class GenericView<T>: BaseView { }
|
|
public class FinalView: GenericView<ContentForTheView> { }
|
|
|
|
|
|
public class ContentForTheView { }
|
|
extension ContentForTheView: InfoNeededByControllers { }
|
|
|
|
public protocol ConditionallyConformed { }
|
|
public protocol InfoNeededByControllers { }
|
|
|
|
extension GenericView: ConditionallyConformed where T: InfoNeededByControllers { }
|
|
|
|
open class BaseGenericController<T> where T: BaseView & ConditionallyConformed { }
|
|
|
|
|
|
open class FinalController: BaseGenericController<FinalView> { public override init() { } }
|
|
|
|
// CHECK: FinalController
|
|
print(FinalController())
|