Fix a couple of places where we still use "parameterized".
Change-Id: I2c70356d4e363ee709c5ef19ec8786956d5e9001
Reviewed-on: https://go-review.googlesource.com/c/go/+/436815
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
obj.color_ = saved
if len(fdecl.TParamList) > 0 && fdecl.Body == nil {
- check.softErrorf(fdecl, _BadDecl, "parameterized function is missing function body")
+ check.softErrorf(fdecl, _BadDecl, "generic function is missing function body")
}
// function body must be type-checked after global declarations
if x.typ != Typ[Invalid] {
var intro string
if isGeneric(x.typ) {
- intro = " of parameterized type "
+ intro = " of generic type "
} else {
intro = " of type "
}
obj.color_ = saved
if fdecl.Type.TypeParams.NumFields() > 0 && fdecl.Body == nil {
- check.softErrorf(fdecl.Name, _BadDecl, "parameterized function is missing function body")
+ check.softErrorf(fdecl.Name, _BadDecl, "generic function is missing function body")
}
// function body must be type-checked after global declarations
if x.typ != Typ[Invalid] {
var intro string
if isGeneric(x.typ) {
- intro = " of parameterized type "
+ intro = " of generic type "
} else {
intro = " of type "
}
h /* ERROR cannot index */ [] /* ERROR operand */ ()
}
-// Parameterized functions must have a function body.
+// Generic functions must have a function body.
-func _ /* ERROR missing function body */ [P any]()
+func _ /* ERROR generic function is missing function body */ [P any]()