Added test for type casts

This commit is contained in:
Mattia Giambirtone 2023-06-01 12:57:32 +02:00
parent 71f44313da
commit f0ae805773
Signed by: nocturn9x
GPG Key ID: 8270F9F467971E59
1 changed files with 6 additions and 0 deletions

6
tests/cast.pn Normal file
View File

@ -0,0 +1,6 @@
import std;
var x = int;
var caster = cast[x];
print(caster(2.0) == 4611686018427387904);