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

Add assertions for compile-time errors #58

Merged
merged 1 commit into from
Feb 16, 2020

Conversation

olafurpg
Copy link
Member

Fixes #36. Previously, it was not possible to write assertions that a
given program does not compile. Now, users can call the
compileErrors(String): String macro which takes a string literal as an
argument and returns the compile-time errors as strings (or
empty string if there is no error)

The macro is implemented for both Scala 2.x and Dotty.

Fixes scalameta#36. Previously, it was not possible to write assertions that a
given program does not compile. Now, users can call the
`compileErrors(String): String` macro which takes a string literal as an
argument and returns the compile-time errors as strings (or
empty string if there is no error)

The macro is implemented for both Scala 2.x and Dotty.
@olafurpg olafurpg merged commit da1075f into scalameta:master Feb 16, 2020
@olafurpg olafurpg deleted the compile-time branch February 16, 2020 23:06
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

Successfully merging this pull request may close these issues.

Testing for non-compilation wanted
1 participant