Bug 27816 - C#6 interpolated string raises NotImplementedException during compilation
Summary: C#6 interpolated string raises NotImplementedException during compilation
Status: RESOLVED DUPLICATE of bug 27525
Alias: None
Product: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2015-03-10 09:12 UTC by bawNg
Modified: 2015-03-10 09:21 UTC (History)
2 users (show)

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


Attachments

Description bawNg 2015-03-10 09:12:22 UTC
Reproduced using:
>using System;
>
>public class Test {
>       const int bar = 1;
>       string foo = $"{bar}";
>	public void Main() { }
>}

Output during compilation:
>[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: CloneTo not implemented for expression Mono.CSharp.InterpolatedString
>  at Mono.CSharp.Expression.CloneTo (Mono.CSharp.CloneContext clonectx, Mono.CSharp.Expression target) [0x00000] in <filename unknown>:0
>  at Mono.CSharp.Expression.Clone (Mono.CSharp.CloneContext clonectx) [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Assign.CloneTo (Mono.CSharp.CloneContext clonectx, Mono.CSharp.Expression t) [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Expression.Clone (Mono.CSharp.CloneContext clonectx) [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeDefinition.ResolveFieldInitializers (Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Constructor.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeDefinition.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.ClassOrStruct.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Class.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeDefinition.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.NamespaceContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.TypeContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.ModuleContainer.EmitContainer () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.AssemblyDefinition.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.AssemblyDefinitionStatic.Emit () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
>  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0>
Comment 1 Marek Safar 2015-03-10 09:21:35 UTC

*** This bug has been marked as a duplicate of bug 27525 ***

Note You need to log in before you can comment on or make changes to this bug.