test/fixedbugs/issue56109.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2022 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import "math" |
| 10 | |
| 11 | func main() { |
| 12 | f := func(p bool) { |
| 13 | if p { |
| 14 | println("hi") |
| 15 | } |
| 16 | } |
| 17 | go f(true || math.Sqrt(2) > 1) |
| 18 | } |