Skip to content

Commit 38ba90b

Browse files
authored
Merge pull request #15978 from DougGregor/minor-cleanups
2 parents b05094f + 9ae36b0 commit 38ba90b

File tree

4 files changed

+21
-93
lines changed

4 files changed

+21
-93
lines changed

include/swift/Sema/TypeCheckRequestKinds.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ TYPE_CHECK_REQUEST(TypeCheckRawType, Enum)
4545
/// Compute the set of inherited protocols for a given protocol.
4646
TYPE_CHECK_REQUEST(InheritedProtocols, Protocol)
4747

48-
/// Partially resolve a type, forming enough of its structure to make
49-
/// structural queries but not determining correctness.
50-
TYPE_CHECK_REQUEST(ResolveTypeRepr, TypeResolution)
51-
5248
/// Resolve the given type declaration to the requested type
5349
/// resolution stage.
5450
TYPE_CHECK_REQUEST(ResolveTypeDecl, TypeDeclResolution)

lib/Sema/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ add_swift_library(swiftSema STATIC
2727
DerivedConformances.cpp
2828
ITCDecl.cpp
2929
ITCNameLookup.cpp
30-
ITCType.cpp
3130
InstrumenterSupport.cpp
3231
IterativeTypeChecker.cpp
3332
MiscDiagnostics.cpp

lib/Sema/ITCType.cpp

Lines changed: 0 additions & 88 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// RUN: not --crash %target-swift-frontend %s -emit-ir
2+
3+
protocol P20 { }
4+
5+
protocol P21b {
6+
associatedtype T
7+
8+
func foo(_: (T?) -> Void)
9+
}
10+
11+
protocol P21a {
12+
associatedtype T
13+
14+
func bar(_: ([T]) -> Void)
15+
}
16+
17+
extension P21b where Self: P21a, T: P20 {
18+
func foo(_: (T?) -> Void) {
19+
bar { _ in }
20+
}
21+
}

0 commit comments

Comments
 (0)