I think this should probably use x.typ instead of Typ[Int]. Untyped constants were already converted to int at line 1020.
I think the consequence of this is that for an expression like make(int, uint(1)), the signature passed to recordBuiltinType will incorrectly report the parameter as int instead of uint. I haven't confirmed this though.
While at it, add missing "invalid argument: " prefix
to a couple of local error messages, for consistency.
Trust: Robert Griesemer <email@example.com>
Run-TryBot: Robert Griesemer <firstname.lastname@example.org>
Reviewed-by: Robert Findley <email@example.com>
TryBot-Result: Go Bot <firstname.lastname@example.org>