-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make compiletime.error more useful #6622
Comments
rtfpessoa
added a commit
to rtfpessoa/dotty
that referenced
this issue
Jun 11, 2019
Allows to get string representations for code passed in $args ```scala inline def logged(p1: => Any) = { val c = code"code: $p1" val res = p1 (c, p1) } logged(indentity("foo")) ``` `logged...` is equivalent to: ```scala ("code: indentity("foo")", indentity("foo")) ```
rtfpessoa
added a commit
to rtfpessoa/dotty
that referenced
this issue
Jun 11, 2019
Allows to get string representations for code passed in the interpolated values ```scala inline def logged(p1: => Any) = { val c = code"code: $p1" val res = p1 (c, p1) } logged(indentity("foo")) ``` is equivalent to: ```scala ("code: indentity("foo")", indentity("foo")) ```
rtfpessoa
added a commit
to rtfpessoa/dotty
that referenced
this issue
Jun 11, 2019
Allows to get string representations for code passed in the interpolated values ```scala inline def logged(p1: => Any) = { val c = code"code: $p1" val res = p1 (c, p1) } logged(indentity("foo")) ``` is equivalent to: ```scala ("code: indentity("foo")", indentity("foo")) ```
nicolasstucki
added a commit
that referenced
this issue
Jun 14, 2019
Fix #6622: Add `code` interpolation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now
error
is defined like this:We should make it take a full interpolated string. That does not work now, since interpolated
strings are not inline constants.
The text was updated successfully, but these errors were encountered: