Closed Andre-LA closed 4 months ago
if you use a record like that, it gets turned into a table, you can check it out by doing tl gen test.tl
Yes, this is on purpose, because of record definitions being used as table prototypes (e.g. function MyRecord:my_method
, MyRecord.my_static_field
, etc.)
(note: I'm testing the
next
, but Teal Playground doesn't accuse an error either)While trying interfaces, I found by accident that this code is accepted: