summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-24.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0165-24.cs')
-rw-r--r--mcs/errors/cs0165-24.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-24.cs b/mcs/errors/cs0165-24.cs
new file mode 100644
index 0000000000..cbc9c97ce5
--- /dev/null
+++ b/mcs/errors/cs0165-24.cs
@@ -0,0 +1,18 @@
+// CS0165: Use of unassigned local variable `a'
+// Line: 14
+
+class X
+{
+ public static void Main ()
+ {
+ int i = 3;
+ switch (i) {
+ case 1:
+ float a = 7.0f;
+ break;
+ default:
+ float b = a + 99.0f;
+ break;
+ }
+ }
+} \ No newline at end of file