aboutsummaryrefslogtreecommitdiff
path: root/src/go/parser/resolver_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/parser/resolver_test.go')
-rw-r--r--src/go/parser/resolver_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/go/parser/resolver_test.go b/src/go/parser/resolver_test.go
index 625c009c91..0c06c592d5 100644
--- a/src/go/parser/resolver_test.go
+++ b/src/go/parser/resolver_test.go
@@ -41,11 +41,7 @@ func TestResolution(t *testing.T) {
path := filepath.Join(dir, fi.Name())
src := readFile(path) // panics on failure
var mode Mode
- if strings.HasSuffix(path, ".go2") {
- if !typeparams.Enabled {
- t.Skip("type params are not enabled")
- }
- } else {
+ if !strings.HasSuffix(path, ".go2") {
mode |= typeparams.DisallowParsing
}
file, err := ParseFile(fset, path, src, mode)