Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error for code that should be compile time error #5

Open
lpil opened this issue Jan 18, 2024 · 0 comments
Open

Runtime error for code that should be compile time error #5

lpil opened this issue Jan 18, 2024 · 0 comments

Comments

@lpil
Copy link
Member

lpil commented Jan 18, 2024

import gleam/io

pub type DateTime

@external(erlang, "calendar", "local_time")
pub fn now() -> DateTime

pub fn main() {
  io.debug(now())
}
Error: panic expression evaluated

I think this may be a compiler bug from target tracking not being quite right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant