sourcemod/sourcepawn/compiler/tests/warn-bad-upcast.sp
2014-11-09 13:01:35 -08:00

16 lines
165 B
SourcePawn

native CloseHandle(Handle:handle);
methodmap Handle {
public Close() = CloseHandle;
};
methodmap Crab {
};
public main()
{
new Crab:x;
new Handle:y;
x = y;
}