[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-named-03.cs
blobd363e9a079508272700e025aecfba8ce1643506b
1 using System;
3 public class C
5 static int Foo (int a, int b = 1, int c = 1)
7 return a;
10 int v;
11 int this [int a, int b = 1, int c = 2] {
12 set {
13 v = a * 500 + b * 50 + c;
15 get {
16 return v;
20 public static int Main ()
22 if (Foo (c: 5, a: 10) != 10)
23 return 1;
25 if (Foo (a: 10) != 10)
26 return 2;
28 C c = new C ();
29 c [a : 1, c : 2, b : 3] = 1;
30 var res = c [1];
31 if (res != 652)
32 return 3;
34 return 0;