Skip to content

Commit 8ceb58f

Browse files
committed
bugfix: Fix tests after backporting semanticdb changes
1 parent 0e65cb7 commit 8ceb58f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/semanticdb/metac.expect

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ _empty_/InfoMacro.reportInfo().(msg) => param msg: String
19991999
_empty_/InfoMacro.reportInfoMacro(). => method reportInfoMacro (param msg: Expr[String])(implicit given param x$2: Quotes): Expr[Unit]
20002000
_empty_/InfoMacro.reportInfoMacro().(msg) => param msg: Expr[String]
20012001
_empty_/InfoMacro.reportInfoMacro().(x$2) => implicit given param x$2: Quotes
2002-
local0 => implicit given param contextual$1: Quotes
2002+
local0 => implicit given param evidence$1: Quotes
20032003

20042004
Occurrences:
20052005
[0:7..0:12): scala -> scala/
@@ -2027,8 +2027,8 @@ Occurrences:
20272027
[9:41..9:53): valueOrAbort -> scala/quoted/Quotes#valueOrAbort().
20282028

20292029
Synthetics:
2030-
[3:48..3:69):reportInfoMacro('msg) => *(contextual$1)
2031-
[3:64..3:68):'msg => orig()(contextual$1)
2030+
[3:48..3:69):reportInfoMacro('msg) => *(evidence$1)
2031+
[3:64..3:68):'msg => orig()(evidence$1)
20322032
[6:11..6:17):quotes => *(x$2)
20332033
[9:37..9:53):msg.valueOrAbort => *(StringFromExpr[String])
20342034
[9:41..9:53):valueOrAbort => *[String]

tests/warn/tostring-interpolated.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Mitigations {
2929

3030
def ok = s"$s is ok"
3131
def jersey = s"number $i"
32-
def unitized = s"unfortunately $shown" // maybe tell them about unintended ()?
32+
def unitized = s"unfortunately $shown" // warn accidental unit value
3333

3434
def nopct = f"$s is ok"
3535
def nofmt = f"number $i"

0 commit comments

Comments
 (0)