sourcemod/sourcepawn/compiler/tests/ok-method-on-const.sp
2014-11-09 13:01:35 -08:00

15 lines
172 B
SourcePawn

native CloseHandle(Handle:handle);
enum Handle {
INVALID_HANDLE = 0,
};
methodmap Handle {
public Close() = CloseHandle;
};
public main()
{
INVALID_HANDLE.Close();
}