You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
Try to compile the following program:
----
package main
import "fmt"
func Byte() {
num := 10.1
fmt.Println(byte(num))
}
----
What is the expected output? What do you see instead?
The program should compile. Instead I get a compiler error message:
sample.go:7: reg: unknown op: TESTL
What is your $GOOS? $GOARCH?
linux 386
Which revision are you using? (hg identify)
b0524afd0d7c tip
Please provide any additional information below.
The same error occurs if byte is substituted with uint16, but not with
int8, int16, uint32, int32, uint or int.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: