We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc1bae commit 502db52Copy full SHA for 502db52
test/NameBinding/InheritedConformance.swift
@@ -4,17 +4,7 @@
4
// RUN: %target-swift-frontend -parse -primary-file %t/main.swift -emit-reference-dependencies-path - > %t.swiftdeps
5
6
// SR-1267, SR-1270
7
-class TypeType<T> { }
8
-protocol ProtocolType {}
9
-
10
-struct StructType<T> { }
11
-extension StructType where T : ProtocolType {
12
- func testCase<T>() -> TypeType<T> {
13
- return TypeType<T>()
14
- }
15
-}
16
17
-class TestView : ProtocolType {}
18
-extension StructType where T : TestView {
19
- var typeType : TypeType<T> { return testCase() }
20
+protocol Protocol {}
+class ConformingClass: Protocol {}
+class BaseClass<T: Protocol> {}
+class ConcreteClass<T: ConformingClass> : BaseClass<T> {}
0 commit comments