Skip to content

Commit 6850f96

Browse files
committed
fix tests
1 parent de31113 commit 6850f96

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,6 @@ object Parsers {
15441544
def updateSpanOfLast(last: T): Unit =
15451545
last match
15461546
case last: WithEndMarker[t] => last.withEndMarker()
1547-
case apply: Apply if sourceVersion.enablesMethodBlockEndMarkers => apply.withEndMarker()
15481547
case _ =>
15491548
last.span = last.span.withEnd(in.lastCharOffset)
15501549

library/src/scala/language.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,13 @@ object language {
367367
*/
368368
@compileTimeOnly("`subCases` can only be used at compile time in import statements")
369369
object subCases
370+
371+
/** Experimental support for end markers for method blocks.
372+
*
373+
* @see [[https://github.com/scala/improvement-proposals/pull/77]]
374+
*/
375+
@compileTimeOnly("`methodBlockEndMarkers` can only be used at compile time in import statements")
376+
object methodBlockEndMarkers
370377
}
371378

372379
/** The deprecated object contains features that are no longer officially suypported in Scala.

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ object language:
174174
*/
175175
@compileTimeOnly("`subCases` can only be used at compile time in import statements")
176176
object subCases
177+
177178
/** Experimental support for end markers for method blocks.
178179
*
179180
* @see [[https://github.com/scala/improvement-proposals/pull/77]]

0 commit comments

Comments
 (0)