# HG changeset patch # User Christian Urban # Date 1732906772 0 # Node ID c07777e9956ab81378c717b537e75cf805488ee0 # Parent 06148fc632730ed98c177d1b3c695bcbb0f284c4 updated diff -r 06148fc63273 -r c07777e9956a progs/fun/funt.sc --- 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