Skip to content

Commit 07b4de1

Browse files
committed
Update error message
It was written for an older version of the system.
1 parent 78211ae commit 07b4de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/PrepareInlineable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ object PrepareInlineable {
287287
"""Malformed macro.
288288
|
289289
|Expected the splice ${...} to be at the top of the RHS:
290-
| inline def foo(inline x: X, ..., y: Y): Int = ${impl(x, ... '{y}})
290+
| inline def foo(inline x: X, ..., y: Y): Int = ${ impl('x, ... 'y) }
291291
|
292292
| * The contents of the splice must call a static method
293-
| * All arguments must be quoted or inline
293+
| * All arguments must be quoted
294294
""".stripMargin, inlined.srcPos)
295295
}
296296
checkMacro(body)

0 commit comments

Comments
 (0)