1 parent ac07464 commit fdcc11bCopy full SHA for fdcc11b
2 files changed
unified/ql/test/library-tests/static-name-binding/CONSISTENCY/CfgConsistency.expected
@@ -0,0 +1,4 @@
1
+consistencyOverview
2
+| deadEnd | 1 |
3
+deadEnd
4
+| generics.swift:3:10:3:17 | Entry |
unified/ql/test/library-tests/static-name-binding/generics.swift
@@ -0,0 +1,9 @@
+enum GenericEnum<T> {
+ case novalue
+ case value(T) // $ access=T
+}
5
+
6
+func testGenericEnum() {
7
+ let intValue = GenericEnum.value(42) // $ access=GenericEnum access=GenericEnum.value
8
+ let stringValue = GenericEnum<String>.novalue // $ access=GenericEnum access=String $ MISSING: access=GenericEnum.novalue
9
0 commit comments