Skip to content

Commit e37f2a0

Browse files
committed
Force enabling typed throws in the new Swift parser
1 parent 7f2e6d4 commit e37f2a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ASTGen/Sources/ASTGen/SourceFile.swift

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ extension Parser.ExperimentalFeatures {
3838
mapFeature(.ThenStatements, to: .thenStatements)
3939
mapFeature(.TypedThrows, to: .typedThrows)
4040
mapFeature(.DoExpressions, to: .doExpressions)
41+
42+
// FIXME: Temporary hack to always enable parsing of typed throws.
43+
insert(.typedThrows)
4144
}
4245
}
4346

0 commit comments

Comments
 (0)