Skip to content

Commit fdcc11b

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

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
consistencyOverview
2+
| deadEnd | 1 |
3+
deadEnd
4+
| generics.swift:3:10:3:17 | Entry |
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)