projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 type pattern matching
[mono.git]
/
mcs
/
errors
/
cs0136-20.cs
1
// CS0136: A local variable named `s' cannot be declared in this scope because it would give a different meaning to `s', which is already used in a `parent or current' scope to denote something else
2
// Line: 10
3
4
internal class Program
5
{
6
public static void Main ()
7
{
8
object o = null;
9
if (o is string s) {
10
int s = 1;
11
}
12
}
13
}