Remove handling of class pseudokeyword since there is no C++ API to use it.

This commit is contained in:
David Anderson
2014-11-09 18:12:30 -08:00
parent 801b7ec9e2
commit cfa0d9341e
21 changed files with 2 additions and 0 deletions
@@ -0,0 +1,11 @@
methodmap Y
{
};
class X < Y
{
};
public main()
{
}
@@ -0,0 +1 @@
cannot mix methodmaps and classes with inheritance
@@ -0,0 +1,11 @@
class Y
{
};
methodmap X < Y
{
};
public main()
{
}
@@ -0,0 +1 @@
cannot mix methodmaps and classes with inheritance
@@ -0,0 +1,13 @@
class X
{
};
f(X:x)
{
return 3
}
public main()
{
return f(2);
}
@@ -0,0 +1 @@
cannot coerce non-object type int to object type X
@@ -0,0 +1,14 @@
class X
{
};
f(any:x)
{
return 3
}
public main()
{
new X:x;
return f(x);
}
@@ -0,0 +1 @@
cannot coerce object type X to non-object type any
@@ -0,0 +1,14 @@
class X
{
};
f({X,Float}:x)
{
return 3
}
public main()
{
new X:x;
return f(x);
}
@@ -0,0 +1 @@
cannot use an object in a multi-tag selector
@@ -0,0 +1,14 @@
class X
{
};
f(x)
{
return 3
}
public main()
{
new X:x;
return f(x);
}
@@ -0,0 +1 @@
cannot coerce object type X to non-object type int
@@ -0,0 +1,14 @@
class X
{
};
f(...)
{
return 3
}
public main()
{
new X:x;
return f(x);
}
@@ -0,0 +1 @@
cannot coerce object type X to non-object type int
@@ -0,0 +1,5 @@
public Action:SomeEvent( Handle:event, const String:name[], bool:dontBroadcast)
{
// error 143: new-style declarations should not have "new"
new object = GetEventInt(event, "object");
}
@@ -0,0 +1 @@
(4) : error 157: 'object' is a reserved keyword
@@ -0,0 +1,14 @@
class X
{
};
f(X:x)
{
return 3
}
public main()
{
new x;
return f(X:x);
}
@@ -0,0 +1 @@
cannot coerce non-object type int to object type X
@@ -0,0 +1,14 @@
class X
{
};
f(x)
{
return 3
}
public main()
{
new X:x;
return f(_:x);
}
@@ -0,0 +1 @@
cannot coerce object type X to non-object type int