eric-hawthorne / relish

Automatically exported from code.google.com/p/relish
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Input variable and return variable with same name should not be allowed. #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When a function is declared with an input variable and a return variable 
sharing the same name, no errors occur (compile or runtime). An empty return 
variable is returned from the function when called.

It should be a compile error.

Original issue reported on code.google.com by bcitg...@gmail.com on 14 Feb 2013 at 8:19