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
What steps will reproduce the problem?
func TestIssueXXXX(t *testing.T) {
src := `
package main
import "unsafe"
type t unsafe.Pointer
func main() {
var x t
var y = uintptr(x)
}
`
f, err := parser.ParseFile(fset, "", src, 0)
if err != nil {
t.Fatal(err)
}
_, err = Check(f.Name.Name, fset, []*ast.File{f})
if err != nil {
t.Fatal("error in Check:", err)
}
}
What is the expected output?
No error
What do you see instead?
issues_test.go:125: error in Check: 10:18: cannot convert invalid operand to uintptr
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Ubuntu raring
Which version are you using? (run 'go version')
go version devel +a71616f65cb1 Tue Sep 03 21:23:52 2013 -0700 linux/amd64
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: