- Sort Score
- Result 10 results
- Languages All
Results 71 - 75 of 75 for typecheck (0.24 sec)
-
src/internal/types/testdata/check/decls0.go
B bool I int32 A [10]P T struct { x, y P } P *T R (*R) F func(A) I Y interface { f(A) I } S [](((P))) M map[I]F C chan<- I // blank types must be typechecked _ pi /* ERROR "not a type" */ _ struct{} _ struct{ pi /* ERROR "not a type" */ } ) // declarations of init const _, init /* ERROR "cannot declare init" */ , _ = 0, 1, 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/ir/const.go
return NewBasicLit(pos, typ, constant.MakeBool(false)) case typ.IsString(): return NewBasicLit(pos, typ, constant.MakeString("")) case typ.IsArray() || typ.IsStruct(): // TODO(mdempsky): Return a typechecked expression instead. return NewCompLitExpr(pos, OCOMPLIT, typ, nil) } base.FatalfAt(pos, "unexpected type: %v", typ) panic("unreachable") } var ( intZero = constant.MakeInt64(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 18:53:26 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
return } } if check.conf.Trace { check.trace(err.pos(), "ERROR: %s (code = %d)", err.desc[0].msg, err.code) } // In go/types, if there is a sub-error with a valid position, // call the typechecker error handler for each sub-error. // Otherwise, call it once, with a single combined message. multiError := false if !isTypes2 { for i := 1; i < len(err.desc); i++ { if err.desc[i].pos.IsKnown() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/go/types/errors.go
} } if check.conf._Trace { check.trace(err.posn().Pos(), "ERROR: %s (code = %d)", err.desc[0].msg, err.code) } // In go/types, if there is a sub-error with a valid position, // call the typechecker error handler for each sub-error. // Otherwise, call it once, with a single combined message. multiError := false if !isTypes2 { for i := 1; i < len(err.desc); i++ { if err.desc[i].posn.Pos().IsValid() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
tools/istio-iptables/pkg/cmd/root.go
handleErrorWithCode(err, 1) } if cfg.RunValidation { validator := validation.NewValidator(cfg) if err := validator.Run(); err != nil { // nolint: revive, stylecheck msg := fmt.Errorf(`iptables validation failed; workload is not ready for Istio. When using Istio CNI, this can occur if a pod is scheduled before the node is ready.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 18 17:36:41 UTC 2024 - 8.1K bytes - Viewed (0)