Skip to content

Commit 6653de5

Browse files
committed
Fix test output
1 parent 4408cbf commit 6653de5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3150,4 +3150,4 @@ class UnstableInlineAccessor(accessed: Symbol, accessorTree: tpd.Tree)(using Con
31503150
class VolatileOnVal()(using Context)
31513151
extends SyntaxMsg(VolatileOnValID):
31523152
protected def msg(using Context): String = "values cannot be volatile"
3153-
protected def explain(using Context): String = ""
3153+
protected def explain(using Context): String = ""

tests/warn/i19416.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- [E193] Syntax Warning: tests\warn\i19416.scala:2:18 -----------------------------------------------------------------
2+
2 | @volatile val x: Int = ??? //warn
3+
| ^
4+
| values cannot be volatile

0 commit comments

Comments
 (0)