teal-language / tl

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

Add optional third arg for string.rep #627

Closed icy-lava closed 1 year ago

icy-lava commented 1 year ago

Fixes #593

Originally I thought I had to trigger the 5.3 compat in the definition of the function (since third arg is not present in Lua 5.1), but upon further inspection of the code it seems like it already gets triggered for any function in the string namespace.

github-actions[bot] commented 1 year ago

Teal Playground URL: https://627--teal-playground-preview.netlify.app

hishamhm commented 1 year ago

@icy-lava Merged! Kudos on your first Teal PR! :tada: