japl/tests/japl/errors/unsup_binary_intstr.jpl

13 lines
271 B
Plaintext

//[Test: unsup_binary_instr]
//[source: raw]
var a = 2 + "hey";
//[end]
/*
[stderr]
An unhandled exception occurred, traceback below:
File '''', line 1, in <module>:
TypeError: unsupported binary operator '+' for objects of type 'integer' and 'string'
[end]
*/
//[end]