diff -r 53f08d873e09 -r 7af2eea19646 solutions/cw5/fun_llvm.sc --- a/solutions/cw5/fun_llvm.sc Sun Sep 17 19:12:57 2023 +0100 +++ b/solutions/cw5/fun_llvm.sc Tue Sep 19 09:54:41 2023 +0100 @@ -195,10 +195,9 @@ // convenient string interpolations // for instructions, labels and methods -import scala.language.implicitConversions -import scala.language.reflectiveCalls + -implicit def string_inters(sc: StringContext) = new { +extension (sc: StringContext) { def i(args: Any*): String = " " ++ sc.s(args:_*) ++ "\n" def l(args: Any*): String = sc.s(args:_*) ++ ":\n" def m(args: Any*): String = sc.s(args:_*) ++ "\n"