mirror of
https://github.com/golang/go
synced 2025-06-16 17:48:47 +00:00
fix bug depot:
1) fix print statements, panic statements (parentheses required) 2) len is now allowed as a var name (bug053) R=gri OCL=14106 CL=14106
This commit is contained in:
test
args.go
bugs
chan
char_lit.gofixedbugs
float_lit.gofmt.gofor.gofunc.gogolden.outhelloworld.goif.goif1.goint_lit.goiota.goken
for.gointerfun.gointervar.golabel.golitfun.gomfunc.goptrfun.goptrvar.gorob1.gorob2.gorobfor.gorobfunc.gorobif.gorobiota.gosimparray.gosimpbool.gosimpconv.gosimpfun.gosimpprint.gosimpswitch.gosimpvar.gostring.gostrvar.go
literal.gopeano.goreadfile.gosieve.gosimassign.gostring_lit.goswitch.goturing.goutf.go@ -8,8 +8,8 @@ package main
|
||||
|
||||
func assert(cond bool, msg string) {
|
||||
if !cond {
|
||||
print "assertion fail: ", msg, "\n";
|
||||
panic 1;
|
||||
print("assertion fail: ", msg, "\n");
|
||||
panic(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user