projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re-styled
[mono.git]
/
mcs
/
tests
/
test-303.cs
1
using System;
2
3
class A
4
{
5
class C : IDisposable
6
{
7
void IDisposable.Dispose () { throw new Exception ("'using' and 'new' didn't resolve C as A+B+C"); }
8
}
9
10
public class B
11
{
12
class C : IDisposable
13
{
14
void IDisposable.Dispose () { }
15
}
16
17
public B () {
18
using (C c = new C ()) {
19
}
20
}
21
}
22
23
public static void Main()
24
{
25
object o = new A.B();
26
}
27
}