tests for ... in whitepace function def

This commit is contained in:
leaf corcoran 2016-09-25 17:47:44 -07:00
parent 5d074c9e62
commit a5abd2fe1e
2 changed files with 34 additions and 0 deletions

View File

@ -117,4 +117,20 @@ j = (f,g,m,
print "what"
y = (a="hi",
b=23,
...) ->
print "what"
y = (a="hi",
b=23,
...
) ->
print "what"
nil

View File

@ -158,4 +158,22 @@ j = function(f, g, m, a, b)
end
return print("what")
end
y = function(a, b, ...)
if a == nil then
a = "hi"
end
if b == nil then
b = 23
end
return print("what")
end
y = function(a, b, ...)
if a == nil then
a = "hi"
end
if b == nil then
b = 23
end
return print("what")
end
return nil