summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0429-3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0429-3.cs')
-rw-r--r--mcs/errors/cs0429-3.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0429-3.cs b/mcs/errors/cs0429-3.cs
new file mode 100644
index 0000000000..b8572b5ba8
--- /dev/null
+++ b/mcs/errors/cs0429-3.cs
@@ -0,0 +1,11 @@
+// CS0429: Unreachable expression code detected
+// Line: 9
+// Compiler options: -warn:4 -warnaserror
+
+class Main
+{
+ public void Method (int i)
+ {
+ var x = true ? 1 : i;
+ }
+}