[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-pattern-10.cs
blob967600e189c06e33bb006ebd32152315c00e8c8b
1 using System;
3 class X
5 public static int Main ()
7 Test (null);
8 if (Test ((long) 0) != 1)
9 return 1;
11 object o = "aa";
12 if (o != null) {
13 if (o is long s) {
14 Console.WriteLine (s);
16 } else if (o is string s) {
17 Console.WriteLine (s);
20 return 0;
23 static int Test (object o)
25 if (o is long s) {
26 return 1;
29 return 0;