mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59:31 +00:00
Third test batch
This commit is contained in:
parent
3edf65dc2a
commit
0eea4b80a6
7 changed files with 131 additions and 1 deletions
14
test/tests/function custom type dispatch.ans
Normal file
14
test/tests/function custom type dispatch.ans
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
:french name="french name"
|
||||
:esperanto name="esperanto name"
|
||||
|
||||
:$ a(name)
|
||||
|{name!value} is english or generic
|
||||
|
||||
:$ a(name::is(french name))
|
||||
|{name!value} is french
|
||||
|
||||
a("bob")
|
||||
|
||||
a("pierre"!type(french name))
|
||||
|
||||
a("idk"!type(esperanto name))
|
||||
Loading…
Add table
Add a link
Reference in a new issue