1 | // want package:`features{typeSet}` |
---|---|
2 | |
3 | package d |
4 | |
5 | type myInt int |
6 | |
7 | func _() { |
8 | // Sanity check that we can both detect local types and interfaces with |
9 | // embedded defined types. |
10 | type constraint interface { |
11 | myInt |
12 | } |
13 | } |
14 |
1 | // want package:`features{typeSet}` |
---|---|
2 | |
3 | package d |
4 | |
5 | type myInt int |
6 | |
7 | func _() { |
8 | // Sanity check that we can both detect local types and interfaces with |
9 | // embedded defined types. |
10 | type constraint interface { |
11 | myInt |
12 | } |
13 | } |
14 |