toString and toString()
#309
|
Hi 👋 We were using this repo as inspiration for another project and copied the final class CIString private (override val toString: String)from CIString.scala The end result is that a |
Answered by
armanbilge
Feb 23, 2023
Replies: 1 comment
|
Hmm, I'm pretty sure those are the same thing? In Scala /*
* Decompiled with CFR 0.151.
*/
public final class CIString {
private final String toString;
private CIString(String toString) {
this.toString = toString;
}
public String toString() {
return this.toString;
}
} |
0 replies
Answer selected by
valencik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, I'm pretty sure those are the same thing? In Scala
vals are encoded as methods.