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
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-303.cs
blob
dbd61b5e46d1bb061d1c429ebb64ff711cbb992b
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
}