mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
29 lines
309 B
Go
29 lines
309 B
Go
package main
|
|
|
|
func Foo() vec2 {
|
|
x := Float() * 1
|
|
y := 1 * Float()
|
|
return vec2(x, y)
|
|
}
|
|
|
|
func Foo2() vec2 {
|
|
var x = Float() * 1
|
|
var y = 1 * Float()
|
|
return vec2(x, y)
|
|
}
|
|
|
|
func Float() float {
|
|
return 1.0
|
|
}
|
|
|
|
func TakeFloat(x float) {
|
|
}
|
|
|
|
func TakeInt(x int) {
|
|
}
|
|
|
|
func Foo3() {
|
|
TakeFloat(1.0)
|
|
TakeInt(1.0)
|
|
}
|