changeset 976 | e9eac62928f5 |
parent 958 | fddf099a82f8 |
--- a/progs/fun/funt.sc Fri Nov 29 18:58:18 2024 +0000 +++ b/progs/fun/funt.sc Fri Nov 29 18:59:32 2024 +0000 @@ -156,7 +156,7 @@ // main compiler functions def compile(prog: List[Decl], class_name: String) : String = { val instructions = prog.map(compile_decl).mkString - (library + instructions).replaceAllLiterally("XXX", class_name) + (library + instructions).replace("XXX", class_name) } // pre-2.5.0 ammonite