File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,15 @@ abstract class Driver extends DotClass {
55
55
* @return The `Reporter` used. Use `Reporter#hasErrors` to check
56
56
* if compilation succeeded.
57
57
*/
58
- final def process (args : Array [String ], reporter : Reporter = null ,
59
- callback : CompilerCallback = null ): Reporter = {
58
+ final def process (
59
+ args : Array [String ],
60
+ reporter : Reporter = null : Reporter ,
61
+ // Dotty deviation: without the final `: Reporter`, Dotty generates a
62
+ // default getter of type `Null`, but scalac somehow expects to
63
+ // see a default getter of type `Reporter` when compiling partest.
64
+ // I don't know why partest expects to see this type, but
65
+ // to make the build bootstrap, we force it by adding the type.
66
+ callback : CompilerCallback = null : CompilerCallback ): Reporter = {
60
67
val ctx = initCtx.fresh
61
68
if (reporter != null )
62
69
ctx.setReporter(reporter)
You can’t perform that action at this time.
0 commit comments