summaryrefslogtreecommitdiff
path: root/test/typeswitch.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeswitch.go')
-rw-r--r--test/typeswitch.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/typeswitch.go b/test/typeswitch.go
index 5ad694d86..0a421ae96 100644
--- a/test/typeswitch.go
+++ b/test/typeswitch.go
@@ -6,6 +6,8 @@
package main
+import "os"
+
const (
Bool = iota;
Int;
@@ -31,7 +33,7 @@ var m = make(map[string]int)
func assert(b bool, s string) {
if !b {
println(s);
- sys.Exit(1);
+ os.Exit(1);
}
}