teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.1k stars 108 forks source link

Is there a way to merge a record? #564

Closed cattokomo closed 1 year ago

cattokomo commented 1 year ago

Hello, I have a module that parses a .env and place it in os.env. When I try to set the os record, the record will only define os.env, not like keeping other os's built-in function.

My question is, how do I merge a record?

cattokomo commented 1 year ago

Found the solution, seems you can't merge record in current version of tl.

532