var v = "hello";
Sys.println("v="+v);
Sys.println("v has equals="+(v has :equals));
Sys.println("v.equals(hello)="+(v.equals("hello")));
Sys.println("v.equals(world)="+(v.equals("world")));
Sys.println("v.equals(null)="+(v.equals(null)));
Output:
v=hello
v has equals=true
v.equals(hello)=true
v.equals(world)=false
Failed invoking <symbol>
Unexpected Type Error
in onStart (.../TestEqualsApp.mc:14)
I would have expected the last statement to return false.