Added int to float coercions to function args and returns, when specified

This commit is contained in:
2023-08-06 02:17:32 +10:00
parent a63bdaef1c
commit cfec1b6911
3 changed files with 38 additions and 0 deletions

8
scripts/shadow.toy Normal file
View File

@@ -0,0 +1,8 @@
//something was odd, so I broke this down for testing
import math;
fn shadowCastPoint(x: float, y: float, depth: int) {
return sin(tan(x/y)) * depth;
}
print shadowCastPoint(1, 1, 10);