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
The REPL incorrectly prints some strings with dollars in them #9335
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9335?orig=1 |
@SethTisue said: |
Guillaume Martres (Smarter) said (edited on May 28, 2015 1:29:38 AM UTC): scala> class A { val x: Int = 1 }
defined class A
scala> val a = classOf[A].getDeclaredFields
a: Array[java.lang.reflect.Field] = Array(private final int A.x)
scala> a(0).toString
res2: String = private final int A.x
scala> a(0).toString.toList
res3: List[Char] = List(p, r, i, v, a, t, e, , f, i, n, a, l, , i, n, t, , $, l, i, n, e, 6, ., $, r, e, a, d, $, $, i, w, $, $, i, w, $, A, ., x)
|
@som-snytt said: scala> $intp.isettings.unwrapStrings = false
$intp.isettings.unwrapStrings: Boolean = false
scala> val x = "Foo$line3.$read$"
x: String = Foo$line3.$read$
scala> class A { val x: Int = 1 }
defined class A
scala> classOf[A].getDeclaredFields()(0)
res1: java.lang.reflect.Field = private final int $line7.$read$$iw$$iw$A.x I wonder if Ammonite resolves the documentation bug already. |
a PR adding |
The fluid idiom in 2.13:
|
sbt uses more exotic Unicode to encode things. |
The text was updated successfully, but these errors were encountered: