Updated with review feedback.
[mono.git] / mcs / tests / test-interpolation-10.cs
1 using System;
2
3 class Program
4 {
5         static int counter;
6
7         static int Main ()
8         {
9                 FormatPrint ($"Case {1}");
10                 if (counter != 1)
11                         return 1;
12
13                 FormatPrint ($"Case {3}");
14                 if (counter != 2)
15                         return 2;
16
17                 return 0;
18         }
19
20         static void FormatPrint (FormattableString message)
21         {
22                 Console.WriteLine(message);
23                 ++counter;
24         }
25 }