mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
The control flow graph was incorrect for the initial clause. Fixes #1368.
17 lines
172 B
Go
17 lines
172 B
Go
package main
|
|
|
|
const dollar byte = 36
|
|
|
|
func main() {
|
|
var c byte = 36
|
|
switch true {
|
|
case c == dollar:
|
|
println("ok")
|
|
default:
|
|
println("not ok")
|
|
}
|
|
}
|
|
|
|
// Output:
|
|
// ok
|