Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / errors / cs0165-48.cs
blob166fb5474331091971bfe4f52a19d3a263f18b28
1 // CS0165: Use of unassigned local variable `v'
2 // Line: 19
4 using System;
6 class X
8 int this [int v] {
9 get {
10 return 1;
12 set {
16 public static void Main ()
18 int v;
19 X x = null;
21 var r = x?[v = 2];
22 Console.WriteLine (v);