1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/fixtures/go/corpus/if-statements.A.go

24 lines
183 B
Go
Raw Normal View History

2017-02-23 21:06:49 +03:00
package main
func main() {
if a() {
b()
}
if a := b(); c {
d()
}
if a() {
b()
} else {
c()
}
2017-10-24 02:52:36 +03:00
if num := 9; num < 0 {
d()
} else if num < 10 {
e()
} else // comment
if f() {
g()
2017-10-24 02:52:36 +03:00
}
2017-10-25 02:00:37 +03:00
}