LightAndLight / ipso

A functional scripting language.
https://ipso.dev
16 stars 1 forks source link

Runtime error #357

Closed LightAndLight closed 1 year ago

LightAndLight commented 1 year ago

Program

bug.ipso

#! /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