mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
tests for ... in whitepace function def
This commit is contained in:
parent
5d074c9e62
commit
a5abd2fe1e
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user