projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Implements C# 7.2 readonly structs
[mono.git]
/
mcs
/
errors
/
cs1604-2.cs
1
// CS1604: Cannot assign to `this' because it is read-only
2
// Line: 8
3
// Compiler options: -langversion:latest
4
5
readonly struct S
6
{
7
void Foo ()
8
{
9
this = new S ();
10
}
11
}