Add test for secret structs
This commit is contained in:
parent
170c0a4197
commit
89d7098654
@ -52,3 +52,12 @@ test_mixed()
|
||||
|
||||
struct LinkedList(x:Int, next=!LinkedList)
|
||||
>> @LinkedList(10, @LinkedList(20))
|
||||
|
||||
struct Password(text:Text; secret)
|
||||
>> my_pass := Password("Swordfish")
|
||||
= Password(...)
|
||||
>> users_by_password := {my_pass=> "User1", Password("xxx")=>"User2"}
|
||||
= {Password(...)=>"User1", Password(...)=>"User2"}
|
||||
>> users_by_password[my_pass]
|
||||
= "User1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user