ID:114704
 
BYOND Version:486
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Firefox 4.0.1
Applies to:DM Language
Status: Deferred

This issue may be low priority or very difficult to fix, and has been put on the back burner for the time being.
Descriptive Problem Summary:
Var definitions can be suffixed with parentheses - this should presumably be considered a syntax error, but isn't. This is fairly minor, but a syntactically invalid program should produce a syntax error.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
var/test()

//attempting to assign a value directly causes a 'bad argument definition' error
var/test2() = 20

//however, new() can still be used in the case of lists (as can list())
var/list/testlist1() = new()
var/list/testlist2() = list()


Expected Results:
The code causes a syntax error.

Actual Results:
The code is parsed without error.

Does the problem occur:
Every time? Or how often?
Seems to be every time. Adding parameters causes a syntax error however.
In other games?
N/A
In other user accounts?
N/A
On other computers?
Presumably

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Not Tested
Workarounds:
None.