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