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