erg/tests/should_ok/container_class.er
2024-04-04 23:24:07 +09:00

16 lines
316 B
Python

D = Class { Int: [Str; _] }
_ = D.new {:}
_ = D.new {1: ["a"]}
D! = Class Dict! { Int: [Str; _] }
_ = D!.new !{:}
_ = D!.new !{1: ["a"]}
D2 = Class { Str: List(Int) }
_ = D2.new { "a": [1] }
D3 = Class { Str: List!(Int) }
_ = D3.new { "a": ![1] }
D4! = Class Dict! { Str: List!(Int) }
_ = D4!.new !{ "a": ![1] }