Files
Toy/test/scripts/coercions.toy

14 lines
194 B
Plaintext

//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";