- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 75 for typecheck (0.38 sec)
-
src/cmd/compile/internal/staticinit/sched.go
// Don't use LookupNum; it interns the resulting string, but these are all unique. sym := typecheck.Lookup(fmt.Sprintf("%s%d", obj.StaticNamePref, statuniqgen)) statuniqgen++ n := ir.NewNameAt(base.Pos, sym, t) sym.Def = n n.Class = ir.PEXTERN typecheck.Target.Externs = append(typecheck.Target.Externs, n) n.Linksym().Set(obj.AttrStatic, true) return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/go/types/issues_test.go
const src = ` package p func f[T any]() {} func _() { f() } ` // no error handler provided (this issue) var conf Config typecheck(src, &conf, nil) // must not panic // with error handler (sanity check) conf.Error = func(error) {} typecheck(src, &conf, nil) // must not panic } func TestIssue63260(t *testing.T) { const src = ` package p func _() { use(f[*string])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
const src = ` package p func f[T any]() {} func _() { f() } ` // no error handler provided (this issue) var conf Config typecheck(src, &conf, nil) // must not panic // with error handler (sanity check) conf.Error = func(error) {} typecheck(src, &conf, nil) // must not panic } func TestIssue63260(t *testing.T) { const src = ` package p func _() { use(f[*string])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stdlib_test.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file tests types2.Check by using it to // typecheck the standard library and tests. package types2_test import ( "bytes" "cmd/compile/internal/syntax" "errors" "fmt" "go/build" "internal/testenv" "os" "path/filepath" "runtime" "strings" "sync"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:18:33 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/object_test.go
for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { src := "package p; " + test.src conf := Config{Error: func(error) {}, Importer: defaultImporter(), EnableAlias: test.alias} pkg, err := typecheck(src, &conf, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".") if len(names) != 1 && len(names) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/object_test.go
for i, test := range testObjects { t.Run(fmt.Sprint(i), func(t *testing.T) { if test.alias { t.Setenv("GODEBUG", "gotypesalias=1") } src := "package p; " + test.src pkg, err := typecheck(src, nil, nil) if err != nil { t.Fatalf("%s: %s", src, err) } names := strings.Split(test.obj, ".") if len(names) != 1 && len(names) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
source := common.NewTextSource(expr) for _, issue := range issues.Errors() { errorStrings = append(errorStrings, issue.ToDisplayString(source)) } t.Fatalf("%v", errorStrings) } // Typecheck expression _, err = cel.AstToCheckedExpr(compiled) if err != nil { t.Fatalf("%v", err) } prog, err := env.Program(compiled) if err != nil { t.Fatalf("%v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
common/config/.golangci.yml
- exportloopref - depguard - gocritic - gofumpt - goimports - revive - gosimple - govet - ineffassign - lll - misspell - staticcheck - stylecheck - typecheck - unconvert - unparam - unused - gci - gosec fast: false linters-settings: errcheck: # report about not checking of errors in type assertions: `a := b.(MyStruct)`;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 20:03:06 UTC 2024 - 11.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
const src1 = ` package p var _ T ` _, err := typecheck(src1, &conf, nil) if err == nil || !strings.HasSuffix(err.Error(), " [go.dev/e/UndeclaredName]") { t.Errorf("src1: unexpected error: got %v", err) } // test case for a multi-line error const src2 = ` package p func f() int { return 0 } var _ = f(1, 2) ` _, err = typecheck(src2, &conf, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0)