diff options
author | Jürg Billeter <j@bitron.ch> | 2012-08-03 09:38:11 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-08-06 13:19:26 +0200 |
commit | 5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089 (patch) | |
tree | ca4d1a4dfb85ceab88339dbc15e165d2f5c564bc /vala/valaobjectcreationexpression.vala | |
parent | 6a6a2cf59b7302b0b3b111c6a0c879c00d36ddce (diff) | |
download | vala-5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089.tar.gz |
Drop Dova profile
Diffstat (limited to 'vala/valaobjectcreationexpression.vala')
-rw-r--r-- | vala/valaobjectcreationexpression.vala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala index 400bc4c32..7384746d0 100644 --- a/vala/valaobjectcreationexpression.vala +++ b/vala/valaobjectcreationexpression.vala @@ -407,10 +407,8 @@ public class Vala.ObjectCreationExpression : Expression { if (parent_node is LocalVariable || parent_node is ExpressionStatement) { // simple statements, no side effects after method call } else if (!(context.analyzer.current_symbol is Block)) { - if (context.profile != Profile.DOVA) { - // can't handle errors in field initializers - Report.error (source_reference, "Field initializers must not throw errors"); - } + // can't handle errors in field initializers + Report.error (source_reference, "Field initializers must not throw errors"); } else { // store parent_node as we need to replace the expression in the old parent node later on var old_parent_node = parent_node; |