diff options
author | Jürg Billeter <j@bitron.ch> | 2011-04-08 21:21:11 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2011-04-08 21:34:05 +0200 |
commit | 2a3f71d2bbed0c1be6075e4d59b5ecfb342ed3a4 (patch) | |
tree | ff94adb8d2c3c211c493aaf1776cf935769084b7 /vala/valadeletestatement.vala | |
parent | ad14bf8355f9f5cbc74cb7781a8d72257888f532 (diff) | |
download | vala-2a3f71d2bbed0c1be6075e4d59b5ecfb342ed3a4.tar.gz |
dova: Convert Array to struct
Diffstat (limited to 'vala/valadeletestatement.vala')
-rw-r--r-- | vala/valadeletestatement.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valadeletestatement.vala b/vala/valadeletestatement.vala index bb8da3922..056b31765 100644 --- a/vala/valadeletestatement.vala +++ b/vala/valadeletestatement.vala @@ -1,6 +1,6 @@ /* valadeletestatement.vala * - * Copyright (C) 2008-2010 Jürg Billeter + * Copyright (C) 2008-2011 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -54,7 +54,7 @@ public class Vala.DeleteStatement : CodeNode, Statement { return false; } - if (!(expression.value_type is PointerType)) { + if (!(expression.value_type is PointerType) && !(expression.value_type is ArrayType)) { error = true; Report.error (source_reference, "delete operator not supported for `%s'".printf (expression.value_type.to_string ())); } |