Files
swift-mirror/test/Interpreter/SR-10600.swift
Daniel Rodríguez Troitiño c83ec17f0d [test] Mark SR-10600.swift as executable.
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.
2019-05-29 15:57:36 -07:00

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())