summaryrefslogtreecommitdiff
path: root/test/files/run/interpolation.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7325 cleans up corner cases of percent handling in StringContext.fEugene Burmako2013-05-041-1/+1
| | | | | | | | | | 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.
* Handle empty format specifiers in the formatting interpolator.Jason Zaugg2012-03-031-0/+6
| | | | f"${foo}" is treated like f"${foo}%s".
* Fix check for number of argumentsDaniel C. Sobral2012-01-171-0/+2
| | | | | | | Fix the test for number of arguments by passing all arguments instead of passing the argument list as a single argument. Add positive and negative tests for it.
* A string interpolation implementation of SIP-11.Martin Odersky2012-01-161-0/+24
This is the complete implementation of SIP-11, in its version of 15-Jan-2012. For now, the interpolations are enabled only under the -Xexperimental flag.