projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 throw expression
[mono.git]
/
mcs
/
tests
/
test-798.cs
1
using System;
2
3
class A
4
{
5
public void Foo (out int a)
6
{
7
a = 100;
8
}
9
}
10
11
class B : A
12
{
13
public void Foo (ref int a)
14
{
15
throw new ApplicationException ("should not be called");
16
}
17
}
18
19
class C
20
{
21
public static int Main ()
22
{
23
int x;
24
new B().Foo (out x);
25
if (x != 100)
26
return 1;
27
28
return 0;
29
}
30
}