sourcemod/sourcepawn/compiler/tests/ok-coerce-on-operators.sp

19 lines
233 B
SourcePawn
Raw Normal View History

enum Handle {
INVALID_HANDLE,
};
methodmap Handle {};
methodmap ArrayList < Handle {};
public void MyCommand()
{
ArrayList myList;
if (INVALID_HANDLE == myList)
{
}
if (myList == INVALID_HANDLE)
{
}
}