How do I escape a dollar sign in string interpolation?
def getCompanion(name: String) = Class.forName(s"my.package.$name$")
// --> "error: unclosed string literal"
See Question&Answers more detail:osHow do I escape a dollar sign in string interpolation?
def getCompanion(name: String) = Class.forName(s"my.package.$name$")
// --> "error: unclosed string literal"
See Question&Answers more detail:os