Typechecker stdlib module :shipit:
This commit is contained in:
parent
6f8b5a4e96
commit
5316cff2a2
6 changed files with 736 additions and 1709 deletions
4
examples/typechecker.it
Normal file
4
examples/typechecker.it
Normal file
|
@ -0,0 +1,4 @@
|
|||
import typecheck as tc
|
||||
tc.checktype('hello', int | str) |> print
|
||||
tc.checktype(0xdeadbeef, int | str) |> print
|
||||
tc.checktype(['hello', 0xdeadbeef], int | str) |> print
|
Loading…
Add table
Add a link
Reference in a new issue