Skip to content

Commit 811932f

Browse files
committed
unified: Add test for spurious re-export
1 parent 61b3720 commit 811932f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • unified/ql/test/library-tests/static-name-binding/package1/Sources/Target4

unified/ql/test/library-tests/static-name-binding/package1/Sources/Target4/UseReExport.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ private protocol P {
88
let x4: Target3.A; // $ access=Target2.A
99
let x5: Target3.B.C; // $ access=Target2.B access=Target2.B.C
1010
let x6: Target3.C; // $ access=Target3.C
11+
12+
// `@_exported import Target2` should not re-export the local 'Target2' name, only its contents
13+
let x7: Target3.Target2.A; // $ SPURIOUS: access=Target2.A
1114
}

0 commit comments

Comments
 (0)