repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-04-01 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0459-3.cs
blob
dc11f42b58977f569c48d92f6e102b7d756f03a0
1
// CS0459: Cannot take the address of using variable `m'
2
// Line: 19
3
// Compiler options: -unsafe
4
5
using
System
;
6
7
struct
S
:
IDisposable
8
{
9
public void
Dispose
()
10
{
11
}
12
}
13
14
class
X
{
15
16
unsafe static void
Main
()
17
{
18
using
(
S m
=
new
S
()){
19
S
*
mm
= &
m
;
20
}
21
}
22
}
23