diff options
author | Paul Phillips <paulp@improving.org> | 2013-09-27 12:27:03 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-09-27 12:27:03 -0700 |
commit | 4b89ce639912d2143cc06ddb3b7da77c8fa8521d (patch) | |
tree | ad7ae6d611ef27e88147917bd266cbcf9e6e5d5c /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | d1e44d85a24aae9a83314fca5de07cf48e3e76ba (diff) | |
parent | 69ce27434e07c8dc215490256fe51622d768dd7e (diff) | |
download | scala-4b89ce639912d2143cc06ddb3b7da77c8fa8521d.tar.gz scala-4b89ce639912d2143cc06ddb3b7da77c8fa8521d.tar.bz2 scala-4b89ce639912d2143cc06ddb3b7da77c8fa8521d.zip |
Merge pull request #2978 from som-snytt/issue/7848-forgotten-interp-msg-lgtm
SI-7848 Xlint no warn on $sym with params
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index f3aed66bc5..d60e61df1b 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1458,7 +1458,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans applyChecks(sym.annotations) // validate implicitNotFoundMessage analyzer.ImplicitNotFoundMsg.check(sym) foreach { warn => - unit.warning(tree.pos, "Invalid implicitNotFound message for %s%s:\n%s".format(sym, sym.locationString, warn)) + unit.warning(tree.pos, f"Invalid implicitNotFound message for ${sym}%s${sym.locationString}%s:%n$warn") } case tpt@TypeTree() => |