diff options
Diffstat (limited to 'mcs/errors/cs0165-42.cs')
-rw-r--r-- | mcs/errors/cs0165-42.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-42.cs b/mcs/errors/cs0165-42.cs new file mode 100644 index 0000000000..81de0cf868 --- /dev/null +++ b/mcs/errors/cs0165-42.cs @@ -0,0 +1,16 @@ +// CS0165: Use of unassigned local variable `a' +// Line: 14 + +using System; + +class Program +{ + public static void Main () + { + object a; + string s = null; + + var res = s ?? (a = null); + Console.WriteLine (a); + } +} |