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