You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luassert assertions support a trailing message parameter, but the annotations don't allow for that. For example, this code works (producing the custom error on failure) but the string is highlighted with the LLS warning "This function expects a maximum of 1 argument(s) but instead it is receiving 2. Lua Diagnostics.(redundant-parameter)"
localcrumb=self.engine:poll()
assert.is_nil(crumb, 'Expected nil end of event queue')
The text was updated successfully, but these errors were encountered:
paigoddess
changed the title
luassert annotations are missing assertion message as a parameter
luassert annotations are missing optional assertion message as a parameter
Mar 10, 2023
luassert assertions support a trailing message parameter, but the annotations don't allow for that. For example, this code works (producing the custom error on failure) but the string is highlighted with the LLS warning "This function expects a maximum of 1 argument(s) but instead it is receiving 2. Lua Diagnostics.(redundant-parameter)"
The text was updated successfully, but these errors were encountered: