问题描述
dotty 中 scala.tools.nsc.MainGenericRunner
的等价物是什么?
我签入了包裹 dotty.tools.dotc
https://github.com/lampepfl/dotty/tree/master/compiler/src/dotty/tools/dotc
但找不到任何东西。
我尝试使用 dotty.tools.dotc.Run
但出现错误
wrap: java.lang.NoSuchMethodException: dotty.tools.dotc.Run.main([Ljava.lang.String;)
解决方法
Scala 3 控制台通常称为 REPL。它在 Scala 3 中的主要入口点是 dotty.tools.repl.Main
。你可以找到它 here。