summaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2008-11-07 11:44:15 -0800
committerIan Lance Taylor <iant@golang.org>2008-11-07 11:44:15 -0800
commit7a8f5b6ab3c3c8dd02039f4d31d5d313b5a81de9 (patch)
tree41fcb418238d311f4d5d0c1c7ede4b31b0c0e300 /test/ken
parentba0ec691cb8b15170cd7f1a1493cc9dc68d6cc03 (diff)
downloadgolang-7a8f5b6ab3c3c8dd02039f4d31d5d313b5a81de9.tar.gz
Don't use a type guard with a type which is not an interface.
R=r,gri DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18781 CL=18785
Diffstat (limited to 'test/ken')
-rw-r--r--test/ken/interbasic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ken/interbasic.go b/test/ken/interbasic.go
index e4b0b79a4..05eea395b 100644
--- a/test/ken/interbasic.go
+++ b/test/ken/interbasic.go
@@ -86,7 +86,7 @@ main()
u64 = 765432; ia[12] = u64;
s = ia[0]; if s != "xxx" { panicln(0,s); }
- i32 = ia[1].(int).(int32);
+ i32 = int32(ia[1].(int));
if i32 != 12345 { panicln(1,i32); }
b = ia[2]; if b != true { panicln(2,b); }