Skip to content

Commit 502db52

Browse files
committed
Reduces the test case to a more simplified version
1 parent dcc1bae commit 502db52

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

test/NameBinding/InheritedConformance.swift

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@
44
// RUN: %target-swift-frontend -parse -primary-file %t/main.swift -emit-reference-dependencies-path - > %t.swiftdeps
55

66
// 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-
}
7+
protocol Protocol {}
8+
class ConformingClass: Protocol {}
9+
class BaseClass<T: Protocol> {}
10+
class ConcreteClass<T: ConformingClass> : BaseClass<T> {}

0 commit comments

Comments
 (0)