update readme (#21797)
[mono-project.git] / mcs / errors / cs0136-6.cs
blob79fa771ff4df9560b8280a4847d18c130f6dd5e0
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: 11
4 using System;
6 class X
8 void Test2 (object o)
10 if (o is ValueType s) {
11 if (o is long s) {
12 Console.WriteLine (s);