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

gtest-388.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a46e877ddc538a36e71db2678ca6b02fa1ac1126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;

class Data {
  public int Value;
}

class Foo {
  static void f (Data d)
  {
    if (d.Value != 5)
      throw new Exception ();
  }

  public static void Main ()
  {
    Data d;
    f (d = new Data () { Value = 5 });
  }
}