summaryrefslogtreecommitdiff
path: root/test/files/run/stringinterpolation_macro-run.check
Commit message (Collapse)AuthorAgeFilesLines
* f interp test is junitSom Snytt2015-10-251-71/+0
| | | | | | | Moves test/files/run/stringinterpolation_macro-run.scala to the junit test class test/junit/scala/StringContextTest.scala. Adds a couple of assertions to the test.
* SI-8608 f interpolator emits constant stringsSom Snytt2014-07-141-0/+4
| | | | | | | | | | | | | | 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.
* SI-8092 More verify for f-interpolatorSom Snytt2014-01-281-0/+5
| | | | | | | | | | | | | | Attempt to verify the nooks and crannies of the format string. Allows all syntax in the javadoc, including arg indexes. If the specifier after an arg has an index that doesn't refer to the arg, a warning is issued and the missing `%s` is prepended (just as for a part with a leading `%n`). Other enhancements include detecting that a `Formattable` wasn't supplied to `%#s`. Error messages attempt to be pithy but descriptive.
* stringinterpolation macro test filesAdriaan Moors2012-07-061-0/+62
This commit adds test files neg: checks the error messages generated by the compiler run: checks the macro implementation features