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 e63ea8a commit 8c4e2ddCopy full SHA for 8c4e2dd
Tests/SwiftParserTest/DeclarationTests.swift
@@ -3156,4 +3156,19 @@ final class DeclarationTests: ParserTestCase {
3156
XCTAssertEqual(decl.description, input, line: line)
3157
}
3158
3159
+
3160
+ func testTransferringTypeSpecifier() {
3161
+ assertParse(
3162
+ "func testVarDeclTupleElt() -> (transferring String, String) {}",
3163
+ experimentalFeatures: .transferringArgsAndResults
3164
+ )
3165
3166
+ "func testVarDeclTuple2(_ x: (transferring String)) {}",
3167
3168
3169
3170
+ "func testVarDeclTuple2(_ x: (transferring String, String)) {}",
3171
3172
3173
+ }
3174
0 commit comments