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

using System;

public class Test
{
        public int i;

        public void Hoge ()
        {
                if (i > 0)
                        goto Fuga;
                string s = "defined later";
        Fuga:
                Console.WriteLine (s);
        }
}