diff options
Diffstat (limited to 'mcs/errors/cs0165-36.cs')
-rw-r--r-- | mcs/errors/cs0165-36.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-36.cs b/mcs/errors/cs0165-36.cs new file mode 100644 index 0000000000..594eafc6f6 --- /dev/null +++ b/mcs/errors/cs0165-36.cs @@ -0,0 +1,17 @@ +// CS0165: Use of unassigned local variable `s' +// Line: 14 + +using System; + +class Program +{ + public static void Main () + { + string s; + object o = null; + while (o != null && string.IsNullOrEmpty (s = (string) o.ToString ())) { + } + + Console.WriteLine (s); + } +} |