commit | aac144b1202fc733a206422bed3cc6eafe4ca855 | [log] [tgz] |
---|---|---|
author | Luuk van Dijk <lvd@golang.org> | Fri Nov 04 17:03:50 2011 +0100 |
committer | Luuk van Dijk <lvd@golang.org> | Fri Nov 04 17:03:50 2011 +0100 |
tree | a099a501ab37f422ddd22459bffe666b07f8a848 | |
parent | f2dc50b48d011d4d585d09d5e6bed350894add3d [diff] [blame] |
gc: detect type switch variable not used cases. Fixes #873 Fixes #2162 R=rsc CC=golang-dev https://golang.org/cl/5341043
diff --git a/test/fixedbugs/bug200.go b/test/fixedbugs/bug200.go index 123f687..63b8633 100644 --- a/test/fixedbugs/bug200.go +++ b/test/fixedbugs/bug200.go
@@ -12,7 +12,7 @@ // and worse, compiled the wrong code // for one of them. var x interface{}; - switch v := x.(type) { + switch x.(type) { case func(int): case func(f int): // ERROR "duplicate" }