]> Cypherpunks.ru repositories - gostls13.git/commit
gc: preserve uint8 and byte distinction in errors, import data
authorRuss Cox <rsc@golang.org>
Tue, 18 Oct 2011 18:55:50 +0000 (14:55 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 18 Oct 2011 18:55:50 +0000 (14:55 -0400)
commit862179b0f58a0f245a820be6c767a7e8ec0f6e88
treea9df0f99601afdd146e61675ae3efaf46da182f3
parentd604cf780814f1f216f653a677d7a3e5eea7d88b
gc: preserve uint8 and byte distinction in errors, import data

There is no semantic change here, just better errors.
If a function says it takes a byte, and you pass it an int,
the compiler error now says that you need a byte, not
that you need a uint8.

Groundwork for rune.

R=ken2
CC=golang-dev
https://golang.org/cl/5300042
src/cmd/gc/builtin.c.boot
src/cmd/gc/export.c
src/cmd/gc/go.h
src/cmd/gc/lex.c
src/cmd/gc/reflect.c
src/cmd/gc/subr.c
src/cmd/gc/typecheck.c
test/alias.go [new file with mode: 0644]