Skip to content

String iterpolation warnings should have a error id #23693

@eejbyfeldt

Description

@eejbyfeldt

Compiler version

3.7.2

Minimized example

object test {
  val _ = s"${Some(1)}"
}

Output Error/Warning message

Using the flag -Wtostring-interpolated

-- Warning: to_string.scala:2:18 -------------------------
2 |  val _ = s"${Some(1)}"
  |              ^^^^^^^
  |              interpolation uses toString
1 warning found

Why this Error/Warning was not helpful

The message does not contain a error id like most other warnings.

Suggested improvement

It could be made more useful by containing a error id.

Metadata

Metadata

Assignees

Labels

area:reportingError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesitype:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions