sourcemod/sourcepawn/compiler/tests/ok-null-compare.sp

20 lines
185 B
SourcePawn
Raw Normal View History

2014-07-18 06:18:49 +02:00
enum Handle:
{
}
methodmap Handle __nullable__
{
}
methodmap StringMap < Handle
{
}
native Log(const char[] fmt, any:...)
public main()
{
StringMap f
Log("hello %d", f != null)
}