]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Set error field when detecting duplicate switch label
authorJürg Billeter <j@bitron.ch>
Mon, 22 Mar 2010 09:43:48 +0000 (10:43 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 22 Mar 2010 09:43:48 +0000 (10:43 +0100)
vala/valaswitchstatement.vala

index 00a8b8ffa182e5aca7ce415206b0d3c5eeb26193..976e7d46c17d8fa4e9f92cd9a506aeb842d3bd1b 100644 (file)
@@ -131,6 +131,7 @@ public class Vala.SwitchStatement : CodeNode, Statement {
                                }
 
                                if (value != null && !labelset.add (value)) {
+                                       error = true;
                                        Report.error (label.expression.source_reference, "Switch statement already contains this label");
                                }
                        }