File tree Expand file tree Collapse file tree 3 files changed +4
-235
lines changed Expand file tree Collapse file tree 3 files changed +4
-235
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ class Definitions {
282
282
283
283
object FunctionType {
284
284
def apply (args : List [Type ], resultType : Type ) =
285
- FunctionClass (args.length).typeRef.appliedTo(args :+ resultType)
285
+ FunctionClass (args.length).typeRef.appliedTo(args ::: resultType :: Nil )
286
286
def unapply (ft : Type ): Option [(List [Type ], Type )] = { // Dotty deviation: Type annotation needed because inferred type
287
287
// is Some[(List[Type], Type)] | None, which is not a legal unapply type.
288
288
val tsym = ft.typeSymbol
Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ import config.Printers._
12
12
*/
13
13
class StoreReporter extends Reporter {
14
14
15
- val infos = new mutable.ListBuffer [Diagnostic ]
15
+ private var infos : mutable.ListBuffer [Diagnostic ] = null
16
16
17
17
protected def doReport (d : Diagnostic )(implicit ctx : Context ): Unit = {
18
18
typr.println(s " >>>> StoredError: ${d.msg}" ) // !!! DEBUG
19
+ if (infos == null ) infos = new mutable.ListBuffer
19
20
infos += d
20
21
}
21
22
22
23
override def flush ()(implicit ctx : Context ) =
23
- infos foreach ctx.reporter.report
24
+ if (infos != null ) infos foreach ctx.reporter.report
24
25
}
You can’t perform that action at this time.
0 commit comments