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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
errors
/
cs1654-3.cs
blob
c49e6875dd7ecc0d5db1fe15965ecdf19f2ae1d3
1
// CS1654: Cannot assign to members of `f' because it is a `using variable'
2
// Line: 22
3
4
using
System
;
5
6
struct
Foo
:
IDisposable
7
{
8
public int
Property
{
9
set
{ }
10
}
11
12
public void
Dispose
()
13
{
14
}
15
}
16
17
class
Bar
18
{
19
static void
Main
()
20
{
21
using
(
var
f
=
new
Foo
()) {
22
f
.
Property
=
0
;
23
}
24
}
25
}