We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa191d commit 84b9f25Copy full SHA for 84b9f25
checker/checker_test.go
@@ -758,27 +758,6 @@ func TestCheck_TaggedFieldName(t *testing.T) {
758
assert.NoError(t, err)
759
}
760
761
-// Let's do the same thing Go does and allow ambiguous identifiers - return first one found.
762
-//func TestCheck_Ambiguous(t *testing.T) {
763
-// type A struct {
764
-// Ambiguous bool
765
-// }
766
-// type B struct {
767
-// Ambiguous int
768
769
-// type Env struct {
770
-// A
771
-// B
772
773
-//
774
-// tree, err := parser.Parse(`Ambiguous == 1`)
775
-// require.NoError(t, err)
776
777
-// _, err = checker.Check(tree, conf.New(Env{}))
778
-// assert.Error(t, err)
779
-// assert.Contains(t, err.Error(), "ambiguous identifier Ambiguous")
780
-//}
781
-
782
func TestCheck_NoConfig(t *testing.T) {
783
tree, err := parser.Parse(`any`)
784
require.NoError(t, err)
0 commit comments