Skip to content

Commit bb2a96b

Browse files
ianlancetaylorgopherbot
authored andcommitted
test: add test case that caused a bogus error from gofrontend
For #56109 Change-Id: I999763e463fac57732a92f5e396f8fa8c35bd2e1 Reviewed-on: https://go-review.googlesource.com/c/go/+/440297 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org>
1 parent fce4496 commit bb2a96b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/fixedbugs/issue56109.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}

0 commit comments

Comments
 (0)