- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 38 for typecheck (0.65 sec)
-
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) -
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/go/types/check_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements a typechecker test harness. The packages specified // in tests are typechecked. Error messages reported by the typechecker are // compared against the errors expected in the test files. // // Expected errors are indicated in the test files by putting comments
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements a typechecker test harness. The packages specified // in tests are typechecked. Error messages reported by the typechecker are // compared against the errors expected in the test files. // // Expected errors are indicated in the test files by putting comments
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // NOTE: If you change this file you must run "go generate" // in cmd/compile/internal/typecheck // to update builtin.go. This is not done automatically // to avoid depending on having a working compiler binary. //go:build ignore package runtime // emitted by compiler, not referred to by go programs
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
return os.WriteFile(cfg.VetxOutput, data, 0666) } ) func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyzer) ([]result, error) { // Load, parse, typecheck. var files []*ast.File for _, name := range cfg.GoFiles { f, err := parser.ParseFile(fset, name, nil, parser.ParseComments) if err != nil { if cfg.SucceedOnTypecheckFailure {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
// Code generated by mkbuiltin.go. DO NOT EDIT. package typecheck import ( "cmd/compile/internal/types" "cmd/internal/src" ) // Not inlining this function removes a significant chunk of init code. // //go:noinline func newSig(params, results []*types.Field) *types.Type { return types.NewSignature(nil, params, results) } func params(tlist ...*types.Type) []*types.Field { flist := make([]*types.Field, len(tlist))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0)