File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -758,27 +758,6 @@ func TestCheck_TaggedFieldName(t *testing.T) {
758
758
assert .NoError (t , err )
759
759
}
760
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
761
func TestCheck_NoConfig (t * testing.T ) {
783
762
tree , err := parser .Parse (`any` )
784
763
require .NoError (t , err )
You can’t perform that action at this time.
0 commit comments