Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0165-27.cs
blobdb34dd83f63c8cd86ba87b3242e0ebfc868e7d21
1 // CS0165: Use of unassigned local variable `a'
2 // Line: 13
4 using System;
6 class Program
8 public static void Main (string[] args)
10 int a, b;
11 string s = "";
12 var res = s != null ? a = 1 : b = 2;
13 Console.WriteLine (a);