Expected `json` string interpolator from io.circe.literal to be able to interpolate variable inside of value strings · Issue #2246 · circe/circe · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//>usingtoolkittypelevel:0.1.25//>usingdepio.circe::circe-literal::0.14.6//>usingscala3.3.3importio.circe.literal._valvalue=5valjson=json"""{ "a": ${s"something with value: $value"}
}"""
I've check using scala 2.13 and the behaviour is the same, so I was wrong about that. I'm curious to know if this is a bug, a technical limitation or a design decision though 😄
I'm having some issues with the behaviour of the json string interpolator.
I was expecting this to compile:
But, instead I had to resort to extracting the whole string from the right hand side of
a
and use regular string interpolation there:Is this expected behaviour? I think this wasn't the case in scala 2
The text was updated successfully, but these errors were encountered: