We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import scala.compiletime.testing.typeChecks object Minimized extends App { inline final def assertCompiles(inline code: String): Boolean = if (typeChecks(code)) true else false inline val code = "1 + 1" val result = assertCompiles(code) println(result) } // scala.MatchError: EmptyTree (of class dotty.tools.dotc.ast.Trees$EmptyTree)
I would expect this to compile and return the same result as typeChecks.
typeChecks
The text was updated successfully, but these errors were encountered:
Fix scala#7488: Handle references with constant String types
01c186e
Fix scala#7488 and fix scala#7487: Handle references with constant St…
a24132a
…ring types
Fix scala#7488 and fix scala#7487: Get String form ConstantType
2ae5d1e
d0e1234
33ebb4a
Merge pull request #7490 from dotty-staging/fix-#7488
0e88077
Fix #7488 and fix #7487: Get String form ConstantType
nicolasstucki
No branches or pull requests
minimized code
expectation
I would expect this to compile and return the same result as
typeChecks
.The text was updated successfully, but these errors were encountered: