summaryrefslogtreecommitdiff
path: root/test/files/run/t8608-no-format.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8608 f interpolator emits constant stringsSom Snytt2014-07-141-0/+15
When invoking `format` is obviated by a lack of formatting fields, then just degenerate to an unenhanced constant string. This means it doesn't cost anything to use f"$$ordinary" in place of "$ordinary", which may cause warnings under -Xlint. Note that certain format literals, in particular for line separator %n, are not actually literals and can't be replaced at compile time.