Bug 32832

Summary: C#6 string interpolation with dictionary initializer fails to compile
Product: [Mono] Compilers Reporter: Alexander Köplinger <alex.koeplinger>
Component: C#Assignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: test.cs

Description Alexander Köplinger 2015-08-06 11:56:22 UTC
Created attachment 12388 [details]
test.cs

Compile the attached file with:

> mcs test.cs

It raises the following errors:

> test.cs(12,10): error CS1525: Unexpected symbol `${', expecting `,' or `}'
> test.cs(14,13): error CS1525: Unexpected symbol `}', expecting `,' or `}'
> test.cs(17,246): error CS1525: Unexpected symbol `end-of-file', expecting `,' or `}'


Works fine on MS.NET
Comment 1 Marek Safar 2015-08-10 05:15:20 UTC
Fixed in master and Mono 4.2