sourcemod/sourcepawn/compiler/tests/ok-methodmap-semis.sp

21 lines
267 B
SourcePawn
Raw Normal View History

#pragma semicolon 1
native IsValidEntity(entity);
methodmap Entity
{
public Entity(const char[] className) {
return Entity:CreateEntityByName(className);
}
property bool IsValid {
public get() {
return IsValidEntity(_:this);
}
}
};
public main()
{
}