Implemented #27, easy coercion from int to float

This commit is contained in:
2022-09-14 16:30:54 +01:00
parent 0f6be5ead7
commit 29b1c41064
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
//test int -> float coercion
{
var f: float = 0;
assert typeof f == float, "coercion on decl failed";
f = 42;
assert typeof f == float, "coercion on assign failed";
}
print "All good";