summaryrefslogtreecommitdiff
path: root/test/files/neg/t7848-interp-warn.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-9314 No warn on ${nonid}Som Snytt2016-03-231-3/+10
| | | | | Use the sym test on an expr that happens to be a subset of idents and is not in scope. Other `${ operator_* }` warn.
* SI-9314 Ignore "${}"Som Snytt2016-03-201-0/+2
| | | | | | | As an Easter egg, let "${} $x" forego the check on `x`. In other words, empty expression interpolation looks too degenerate to check.
* SI-9314 Don't warn on "$pkg"Som Snytt2016-03-201-3/+13
| | | | | Edge cases of things not to warn about include package names.
* SI-9127 Xlint doesn't think spaces are significantSom Snytt2015-02-211-1/+1
| | | | | | | | | | | For purposes of warning about missing interpolators, such as `"$greeting"` when the intended code was `s"$greeting"`, spaces are no longer significant. The heuristic was previously intended to allow compileresque strings, where the dollar sign is a common prefix. Currently, the Xlint warning can be selectively disabled.
* SI-7848 Xlint no warn on $sym with paramsSom Snytt2013-09-231-0/+5
| | | | | | | | | | | | This idea brought to you by retronym. Also improve implicitNotFound detection at typer; and avoid checking the standard interpolation expression for cases like s"some $$x". Some minor refactorings of implicitNotFound strings. The intersobralator allows extra spaces, i.e., trims.
* SI-7848 Xlint says what looks interpolatedSom Snytt2013-09-171-0/+13
The motivating use case was an Expecty debug string getting flagged for `$eq`. The test case demonstrates a different bug, in which the position of the literal tree is changed when typer gets rid of the unused local, so that when the tree is re-typed in erasure, a second, spurious warning is emitted at the start of the method. Specifically, the second warning is not suppressed because of the different position.