summaryrefslogtreecommitdiff
path: root/test/files/neg/t7325.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-8092 More verify for f-interpolatorSom Snytt2014-01-281-4/+4
| | | | | | | | | | | | | | 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.
* SI-7544 Interpolation message for %% literalSom Snytt2013-08-061-5/+5
| | | | | | | | | | | The new error text: "conversions must follow a splice; use %% for literal %, %n for newline". The error is emitted when % is not at the start of a part; only the non-conversions %% and %n are allowed. It would be nice if it were convenient to parse the part to see what the user may have intended, but c'est l'erreur.
* SI-7325 cleans up corner cases of percent handling in StringContext.fEugene Burmako2013-05-041-0/+19
See comments in code for the exhaustive list of the cases handled. Also note that treatment of non-formatting percents has been changed. Embedding literal %'s now requires escaping. Moreover, this commit also features exact error positions for string interpolation, something that has been impossible until the fix for SI-7271, also included in this patch.