Skip to content

Commit 8d63523

Browse files
authored
Follow up for #1198: Fix test build for FOUNDATION_FRAMEWORK (#1261)
`TestSupport` already defines a typealias for `Expression` as `public typealias Expression = Foundation.Expression`. Therefore the top level typealias `private typealias Expression = URL.Template.Expression` caused an error when `TestSupport` is imported. Move the typealias declaration to inside the test suite.
1 parent f53d198 commit 8d63523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/FoundationEssentialsTests/URITemplatingTests/URLTemplate_ExpressionTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import struct Foundation.URL
2020
#endif
2121
import Testing
2222

23-
private typealias Expression = URL.Template.Expression
24-
private typealias Element = URL.Template.Expression.Element
25-
2623
@Suite("URL.Template Expression")
2724
private enum ExpressionTests {
25+
private typealias Expression = URL.Template.Expression
26+
private typealias Element = URL.Template.Expression.Element
27+
2828
@Test
2929
static func parsingWithSingleName() throws {
3030
#expect(

0 commit comments

Comments
 (0)