File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3484,6 +3484,8 @@ object Parsers {
34843484 else if tparams.nonEmpty && stat.tparams.nonEmpty then
34853485 syntaxError(i " extension method cannot have type parameters since some were already given previously " ,
34863486 stat.tparams.head.span)
3487+ else if stat.rhs.isEmpty then
3488+ syntaxError(i " extension method cannot be abstract " , stat.span)
34873489 case stat =>
34883490 syntaxError(i " extension clause can only define methods " , stat.span)
34893491 }
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ object Nullables:
170170 case info :: infos1 =>
171171 if info.asserted.contains(ref) then true
172172 else if info.retracted.contains(ref) then false
173- else impliesNotNull( infos1) (ref)
173+ else infos1.impliesNotNull (ref)
174174 case _ =>
175175 false
176176
You can’t perform that action at this time.
0 commit comments