Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-230.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 092dc99da25cbc855a3acabccde8747d90d321d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// This example is from bug: 72908
//
// Showed a problem with the use of "<" in certain expressions
// that were confusing the parser
//

class A { }
  
public class B {
  static int goo <T1, T2, T3, T4, T5> (int d) { return 3; }

  static void foo (int x) { }
  static void foo (bool h, int x, int y, int j, bool k) { }

  public void Add (object x) { }

  public static void Main () {
    int A = 4;
    int goo1 = 3;
    foo (goo <A, A, A, A, A> (1));
    foo (goo1 <A, A, A, A, A > goo1);
  }
}