Fix const with newdecls and a varargs bug. (bug 6179)

This commit is contained in:
David Anderson
2014-07-17 20:44:54 -07:00
parent ac371aa639
commit 84344c1592
3 changed files with 101 additions and 50 deletions
@@ -1,5 +1,7 @@
#pragma semicolon 1
native IsValidEntity(entity);
methodmap Entity
{
public Entity(const char[] className) {
@@ -0,0 +1,12 @@
// both fine
const MY_CONST = 1;
const Float:FLOAT_CONST = 1.0;
// error 020: invalid symbol name ""
const int MY_INT_COST = 1;
// error 001: expected token: "=", but found "-identifier-"
const float MY_FLOAT_CONST = 1.0;
public main()
{
}