Commit e76e9cfc authored by Ian Lance Taylor's avatar Ian Lance Taylor

Call the right function for int32 values.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=18073
CL=18073
parent 282493bb
......@@ -14,7 +14,7 @@ func main() {
var v1 int = i;
if foo1(v1) != 1 { panicln(1) }
var v2 int32 = i.(int).(int32);
if foo1(v2) != 1 { panicln(2) }
if foo2(v2) != 1 { panicln(2) }
var v3 int32 = i; // This implicit type conversion should fail at runtime.
if foo1(v3) != 1 { panicln(3) }
if foo2(v3) != 1 { panicln(3) }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment