summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-3.cs
blob: 524818b694211d0ac90f6c553f3fcd19b6f97b01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0165: Use of unassigned local variable `s'
// Line: 9

public class Test
{
        public static string Foo {
                get {
                        string s;
                        if (0 == 1 && (s = "") == "a" || s == "")
                                return s;
                        return " ";
                }
        }
}