ebiten/internal/shader/testdata/number.go

33 lines
357 B
Go
Raw Normal View History

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)
}