Skip to content

Commit 3ed93cc

Browse files
committed
Unified: Add static name binding for generic type expressions
1 parent ac07464 commit 3ed93cc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
enum GenericEnum<T> {
2+
case novalue
3+
case value(T) // $ access=T
4+
}
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

Comments
 (0)