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

method with extern implementation in non-@extern object raises UndefinedBehaviorException #3380

Closed
armanbilge opened this issue Jul 7, 2023 · 0 comments · Fixed by #3549
Closed

Comments

@armanbilge
Copy link
Member

armanbilge commented Jul 7, 2023

e.g.

// forgot @extern
object FooLib {
  def bar(): Unit = extern
}

This makes a silly mistake (forgotten @extern) very confusing to debug. Can we emit a more specific exception in this situation, or even catch it earlier in the toolchain before runtime?

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

Successfully merging a pull request may close this issue.

2 participants