Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-interpolation-05.cs
1 using System;
2
3 public class ParserTest
4 {
5         void Test1 ()
6         {
7                 bool b = true;
8                 Console.WriteLine(b ? $"{1:0.00}" : $"bar");
9         }
10
11         void Test2 ()
12         {
13                 Console.WriteLine($"This should work but the compiler explodes if the string is too long!");            
14         }
15
16         void Test3 ()
17         {
18                 string field = "";
19                 var l1 = $"\"{field.Replace("\"", "gg")}\"";
20                 var l2 = $@"""{field.Replace("\"", "gg")}""";
21         }
22
23         public static void Main()
24         {
25         }
26 }