n->type = n->left->type;
return;
}
-
// avoided repeated calculations, errors
if(cvttype(n->type, t)) {
n->type = t;
default:
goto bad;
+ case TSTRING:
+ // let normal conversion code handle it
+ return;
+
case TPTR32:
case TPTR64:
case TINTER:
5 7
BUG: should crash
-=========== bugs/bug149.go
-bugs/bug149.go:14: cannot convert []uint8 constant to string
-BUG: should compile
-
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint
fixedbugs/bug041.go:5: export of incomplete type t
=========== fixedbugs/bug049.go
-fixedbugs/bug049.go:6: cannot convert nil constant to string
fixedbugs/bug049.go:6: illegal types for operand: EQ
string
nil
fixedbugs/bug051.go:10: expression must be a constant
=========== fixedbugs/bug062.go
-fixedbugs/bug062.go:6: cannot convert nil constant to string
fixedbugs/bug062.go:6: illegal types for operand: AS
string
nil