differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

[Python] Reassigning a function parameter treats it as undefined until reassignment #70

Closed UltCombo closed 8 years ago

UltCombo commented 9 years ago

Test case:

def f(x):
    self.say(x + '') # output: undefined, expected: 1
    x = 2
f(1)

See discussion: https://github.com/codecombat/codecombat/issues/2880#issuecomment-118458653

basicer commented 8 years ago

Fixed in 0.1.16