Bug 30469 - String interpolation with escaped bracket generates wrong result
Summary: String interpolation with escaped bracket generates wrong result
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 4.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2015-05-26 16:25 UTC by kfoens
Modified: 2015-05-28 11:24 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Reproduces string interpolation bug (205 bytes, text/plain)
2015-05-26 16:25 UTC, kfoens

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description kfoens 2015-05-26 16:25:48 UTC
Created attachment 11345 [details]
Reproduces string interpolation bug

The following C# code
  $"{{foo = {month}}}"
  {foo = 6
as output. It should generate
  {foo = 6}

Example program attached.

Tested on Windows 8 with recently installed mono-4.0.1-gtksharp-2.12.26-win32-0.msi
Comment 1 Marek Safar 2015-05-28 11:24:10 UTC
Fixed in master