Skip to content

compiletime.testing.typeChecks does not catch errors from inline expansion #11630

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

Closed
jodersky opened this issue Mar 6, 2021 · 0 comments · Fixed by #11656
Closed

compiletime.testing.typeChecks does not catch errors from inline expansion #11630

jodersky opened this issue Mar 6, 2021 · 0 comments · Fixed by #11656
Assignees
Milestone

Comments

@jodersky
Copy link
Contributor

jodersky commented Mar 6, 2021

Compiler version

3.0.0-RC1

Minimized code

inline def failme() = compiletime.error("fail")

@main def run() = {
  assert(!compiletime.testing.typeChecks("failme()"))
}

Output

The assertion fails at runtime, since typeChecks returns true.

Expectation

typeChecks should return false

Note

Under M3, the above code works as expected.

jodersky added a commit to com-lihaoyi/cask that referenced this issue Mar 8, 2021
jodersky added a commit to com-lihaoyi/cask that referenced this issue Mar 8, 2021
jodersky added a commit to com-lihaoyi/cask that referenced this issue Mar 8, 2021
jodersky added a commit to com-lihaoyi/cask that referenced this issue Mar 8, 2021
@odersky odersky self-assigned this Mar 8, 2021
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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.

4 participants