neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
916 stars 43 forks source link

"less than or equals" errors on int-s #230

Closed vmarkovtsev closed 6 years ago

vmarkovtsev commented 6 years ago

The following code

1 <= 2

fails with

ng: ng eval panic: binOp type mismatch Left: +1 (eval.UntypedInt), Right: +2 (eval.UntypedInt) op: <=

and this code

var a int = 1
var b int = 2

fails with

ng: ng eval panic: binOp type mismatch Left: 1 (int), Right: 2 (int) op: <=