Now all three commands complain about a type object being passed when an 
instance is required:

$ perl6 -e 'say +Failure'
Invocant requires an instance, but a type object was passed
  in method Numeric at src/gen/m-CORE.setting:15733
  in block <unit> at -e:1

$ perl6 -e 'say "abcd".index("xyz") == 0'
Invocant requires an instance, but a type object was passed
  in method Bridge at src/gen/m-CORE.setting:5603
  in sub infix:<==> at src/gen/m-CORE.setting:5521
  in block <unit> at -e:1

$ perl6 -e 'Failure == 0'
Invocant requires an instance, but a type object was passed
  in method Numeric at src/gen/m-CORE.setting:15733
  in sub infix:<==> at src/gen/m-CORE.setting:5323
  in block <unit> at -e:1

Is that reasonable or what would be an adequate error message?

Reply via email to