1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 17:59:10 +03:00
semantic/test/fixtures/go/corpus/if-statements.A.go
2018-04-18 13:33:17 -07:00

24 lines
183 B
Go

package main
func main() {
if a() {
b()
}
if a := b(); c {
d()
}
if a() {
b()
} else {
c()
}
if num := 9; num < 0 {
d()
} else if num < 10 {
e()
} else // comment
if f() {
g()
}
}