File tree 1 file changed +10
-7
lines changed
Tests/SwiftLexicalLookupTest
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -525,22 +525,25 @@ final class testNameLookup: XCTestCase {
525
525
" 6️⃣ " : [ . fromFileScope( expectedNames: [ " 9️⃣ " ] ) ] ,
526
526
" 0️⃣ " : [ . fromFileScope( expectedNames: [ " 9️⃣ " ] ) ] ,
527
527
] ,
528
- expectedResultTypes: . all( ClassDeclSyntax . self, except: [
529
- " 8️⃣ " : IdentifierPatternSyntax . self,
530
- " 🔟 " : IdentifierPatternSyntax . self
531
- ] ) ,
528
+ expectedResultTypes: . all(
529
+ ClassDeclSyntax . self,
530
+ except: [
531
+ " 8️⃣ " : IdentifierPatternSyntax . self,
532
+ " 🔟 " : IdentifierPatternSyntax . self,
533
+ ]
534
+ ) ,
532
535
config: LookupConfig ( fileScopeHandling: . memberBlock)
533
536
)
534
537
}
535
-
538
+
536
539
func testDeclarationAvailabilityInCodeBlock( ) {
537
540
assertLexicalNameLookup (
538
541
source: """
539
542
func x {
540
543
1️⃣class A {}
541
-
544
+
542
545
let a = 2️⃣A()
543
-
546
+
544
547
3️⃣class A {}
545
548
}
546
549
""" ,
You can’t perform that action at this time.
0 commit comments