- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for versionErrorf (0.24 sec)
-
src/cmd/compile/internal/types2/version.go
// which are used to report a version error if allowVersion returns false. func (check *Checker) verifyVersionf(at poser, v goVersion, format string, args ...interface{}) bool { if !check.allowVersion(at, v) { check.versionErrorf(at, v, format, args...) return false } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/go/types/version.go
// current package. func (check *Checker) verifyVersionf(at positioner, v goVersion, format string, args ...interface{}) bool { if !check.allowVersion(at, v) { check.versionErrorf(at, v, format, args...) return false } return true } // TODO(gri) Consider a more direct (position-independent) mechanism // to identify which file we're in so that version checks
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 23:12:40 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/call.go
var reverse bool if T != nil && sig.tparams != nil { if !versionErr && !check.allowVersion(instErrPos, go1_21) { if inst != nil { check.versionErrorf(instErrPos, go1_21, "partially instantiated function in assignment") } else { check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment") } } gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
func (check *Checker) softErrorf(at poser, code Code, format string, args ...any) { err := check.newError(code) err.addf(at, format, args...) err.soft = true err.report() } func (check *Checker) versionErrorf(at poser, v goVersion, format string, args ...any) { msg := check.sprintf(format, args...) err := check.newError(UnsupportedFeature) err.addf(at, "%s requires %s or later", msg, v) err.report() }
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/call.go
var reverse bool if T != nil && sig.tparams != nil { if !versionErr && !check.allowVersion(instErrPos, go1_21) { if ix != nil { check.versionErrorf(instErrPos, go1_21, "partially instantiated function in assignment") } else { check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment") } } gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 33.5K bytes - Viewed (0) -
src/go/types/errors.go
func (check *Checker) softErrorf(at positioner, code Code, format string, args ...any) { err := check.newError(code) err.addf(at, format, args...) err.soft = true err.report() } func (check *Checker) versionErrorf(at positioner, v goVersion, format string, args ...any) { msg := check.sprintf(format, args...) err := check.newError(UnsupportedFeature) err.addf(at, "%s requires %s or later", msg, v) err.report() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/conversions.go
if Identical(s.Elem(), a.Elem()) { if check == nil || check.allowVersion(x, go1_20) { return true } // check != nil if cause != nil { // TODO(gri) consider restructuring versionErrorf so we can use it here and below *cause = "conversion of slice to array requires go1.20 or later" } return false } case *Pointer: if a, _ := under(a.Elem()).(*Array); a != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0) -
src/go/types/conversions.go
if Identical(s.Elem(), a.Elem()) { if check == nil || check.allowVersion(x, go1_20) { return true } // check != nil if cause != nil { // TODO(gri) consider restructuring versionErrorf so we can use it here and below *cause = "conversion of slice to array requires go1.20 or later" } return false } case *Pointer: if a, _ := under(a.Elem()).(*Array); a != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/expr.go
} // len(s) > 2 if strings.Contains(s, "_") { check.versionErrorf(lit, go1_13, "underscore in numeric literal") return } if s[0] != '0' { return } radix := s[1] if radix == 'b' || radix == 'B' { check.versionErrorf(lit, go1_13, "binary literal") return } if radix == 'o' || radix == 'O' { check.versionErrorf(lit, go1_13, "0o/0O-style octal literal") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
} // len(s) > 2 if strings.Contains(s, "_") { check.versionErrorf(lit, go1_13, "underscore in numeric literal") return } if s[0] != '0' { return } radix := s[1] if radix == 'b' || radix == 'B' { check.versionErrorf(lit, go1_13, "binary literal") return } if radix == 'o' || radix == 'O' { check.versionErrorf(lit, go1_13, "0o/0O-style octal literal") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)