diff options
Diffstat (limited to 'test/fixedbugs/bug141.go')
-rw-r--r-- | test/fixedbugs/bug141.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fixedbugs/bug141.go b/test/fixedbugs/bug141.go index a2fd992c0..756ba308d 100644 --- a/test/fixedbugs/bug141.go +++ b/test/fixedbugs/bug141.go @@ -6,6 +6,8 @@ package main +import "os" + type S struct { i int } func (p *S) Get() int { return p.i } @@ -18,7 +20,7 @@ type Getter interface { func f1(p Empty) { switch x := p.(type) { - default: println("failed to match interface"); sys.Exit(1); + default: println("failed to match interface"); os.Exit(1); case Getter: break; } |