repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
test-307.cs
blob
8958075a4da8f28a1dffebebd78fb3caaeea2ae8
1
using
System
;
2
3
using
C
=
A
.
D
;
4
5
public class
A
6
{
7
public 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
}