We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e66b92f + 196a093 commit 3e91e97Copy full SHA for 3e91e97
Tests/SwiftParserTest/DeclarationTests.swift
@@ -3293,4 +3293,19 @@ final class DeclarationTests: ParserTestCase {
3293
// Not actually valid, needs to be diagnosed during type checking
3294
assertParse("public init() -> Int")
3295
}
3296
+
3297
+ func testTransferringTypeSpecifier() {
3298
+ assertParse(
3299
+ "func testVarDeclTupleElt() -> (transferring String, String) {}",
3300
+ experimentalFeatures: .transferringArgsAndResults
3301
+ )
3302
3303
+ "func testVarDeclTuple2(_ x: (transferring String)) {}",
3304
3305
3306
3307
+ "func testVarDeclTuple2(_ x: (transferring String, String)) {}",
3308
3309
3310
+ }
3311
0 commit comments