a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
239 B
C#
20 lines
239 B
C#
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 });
|
|
}
|
|
}
|