[mcs] Fix parsing of interpolated strings inside conditional expression. Fixes #28293
[mono.git] / mcs / tests / test-interpolation-05.cs
diff --git a/mcs/tests/test-interpolation-05.cs b/mcs/tests/test-interpolation-05.cs
new file mode 100644 (file)
index 0000000..c604b51
--- /dev/null
@@ -0,0 +1,14 @@
+using System;
+
+public class ParserTest
+{
+       void Test1 ()
+       {
+               bool b = true;
+               Console.WriteLine(b ? $"{1:0.00}" : $"bar");
+       }
+
+       public static void Main()
+       {
+       }
+}
\ No newline at end of file