[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: function aa(a,a) return a end -> bug ?
- From: Domingo Alvarez Duarte <mingodad@...>
- Date: Tue, 27 Nov 2018 19:53:11 +0100
I just found when reading
on page 80 see bellow:
To be really picky, the type checker of function definitions should also
check that all variables in the parameter list are distinct. We shall
see in the
next section that variables introduced in declarations are checked to be
Then they must also be new with respect to the function parameters.
I decided to check lua and found that lua/luajit accept this without
function aa(a,a) return a end
print(aa(1,2)) --> 2
Is this the expected behavior or a bug ?