Replies: 1 comment 1 reply
-
This is perhaps not quite as pretty, but this does seem to work: local function add(x --[[@param x integer]], y --[[@param y integer]]) --[[@return integer]]
return x + y
end |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If possible, an inline version of function annotations would be desirable
This makes implementing plugins of languages that transpile into lua much easier, such as teal
Beta Was this translation helpful? Give feedback.
All reactions