Skip to content

Commit 14034ae

Browse files
committed
Unified: Add static name binding test for nested enum
1 parent fdf5c84 commit 14034ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • unified/ql/test/library-tests/static-name-binding

‎unified/ql/test/library-tests/static-name-binding/test.swift‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ class A {
66
}
77

88
typealias BAlias = B // $ access=A.B
9+
10+
enum Enum { case empty }
911
}
1012

1113
let x1: B = nil // $ access=top.B
1214
let x2: A.B = nil // $ access=A access=A.B
1315
let x3: A.B.C = nil // $ access=A access=A.B access=A.B.C
1416
let x4: A.BAlias.C = nil // $ access=A access=A.BAlias access=A.B.C
17+
let x5 = A.Enum.empty // $ access=A $ MISSING: access=A.Enum access=A.Enum.empty
1518

1619
class D {
1720
let x1: B = nil // $ access=top.B

0 commit comments

Comments
 (0)