go/types, types2: signature recorded for cap
/len
built in calls incorrectly uses underlying type of argument
#51055
Labels
Milestone
Type-checking a call of the built-in function
cap
orlen
records the signature of the respective function for the actual arguments provided; the type can be found in in theInfo.Types
map supplied to the the type checker through its API.The type recorded for these two functions uses the argument's underlying type rather than it's actual type. For instance, given
records the signature
func ([]int) int
. It should recordfunc(List) int
instead.The text was updated successfully, but these errors were encountered: