-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure selectorExpr.X is package name
see test case
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
# binary | ||
cmd/exhaustive/exhaustive | ||
exhaustive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package exp | ||
|
||
// NOTE: Feel free to delete code below. This is a temporary scratchpad for use | ||
// when working on bugfixes or new code for exhaustive. | ||
|
||
import "github.com/nishanths/exhaustive/testdata/playground/x" | ||
|
||
func _o() { | ||
// Selector isn't of the form "enumPkg.enumMember" | ||
|
||
type holdsW struct { | ||
W x.Direction | ||
} | ||
|
||
var d x.Direction | ||
var h holdsW | ||
|
||
switch d { | ||
case x.N: | ||
case x.E: | ||
case x.S: | ||
case h.W: | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters