Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-interpolation-01.cs
index 348cda7be50723e7f973babb20547b69dd8f517b..6d31f3c67581353130b0f9afbcd5a6c34781bcb9 100644 (file)
@@ -44,7 +44,7 @@ public class Test
                        return 9;
 
                s = $"{200:{{X+Y}}}";
-               if (s != "{{X+Y}")
+               if (s != "{X+Y}")
                        return 10;
 
                s = $"{ $"{ res }" }";
@@ -60,6 +60,10 @@ public class Test
                if (s != "b = 3")
                        return 13;
 
+               s = $"{{fo!o = {res}}}";
+               if (s != "{fo!o = 5}")
+                       return 14;
+
                Console.WriteLine ("ok");
                return 0;
        }