#! /usr/bin/env ipso
bad : Int
bad = let x = 1 in (\() -> x + 1) ()
main : IO ()
main = println <| debug bad
Expected output
$ ./bug.ipso
2
Actual output
$ ./bug.ipso
thread 'main' panicked at 'expected int, got Unit', src/lib.rs:487:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Program
bug.ipso
Expected output
Actual output