mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
15 lines
149 B
Go
15 lines
149 B
Go
|
package main
|
||
|
|
||
|
func Ident(x int) int {
|
||
|
return x
|
||
|
}
|
||
|
|
||
|
func Foo() int {
|
||
|
sum := 0
|
||
|
for i := 0; i < 10; i++ {
|
||
|
x := Ident(i)
|
||
|
sum += x
|
||
|
}
|
||
|
return sum
|
||
|
}
|