diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-11-14 16:13:01 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-11-14 16:14:34 +0100 |
commit | 50b373b68474732225a89f3476bb46dd9c0012c0 (patch) | |
tree | 2794e2157a7d000ddcab7cf62d7264d2810c6c1f /vala/valaunaryexpression.vala | |
parent | 9319f309dd97532a3174de995a83884739d70460 (diff) | |
download | vala-50b373b68474732225a89f3476bb46dd9c0012c0.tar.gz |
Revert errornous git push
This reverts commit 9319f309dd97532a3174de995a83884739d70460.
This reverts commit 9ccdd25eaf0c57ac0cb18380b81d76a9d7113f7f.
This reverts commit 6689c356dade08a0d04a4d6f3add15a71125e925.
This reverts commit 4f560d0bb2753bed14b2f0688f2d3e686a39d6ca.
Diffstat (limited to 'vala/valaunaryexpression.vala')
-rw-r--r-- | vala/valaunaryexpression.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala index a46a4a9c2..76c31cd7a 100644 --- a/vala/valaunaryexpression.vala +++ b/vala/valaunaryexpression.vala @@ -176,7 +176,7 @@ public class Vala.UnaryExpression : Expression { return false; } - value_type = inner.value_type.copy (); + value_type = inner.value_type; break; case UnaryOperator.LOGICAL_NEGATION: // boolean type @@ -186,7 +186,7 @@ public class Vala.UnaryExpression : Expression { return false; } - value_type = inner.value_type.copy (); + value_type = inner.value_type; break; case UnaryOperator.BITWISE_COMPLEMENT: // integer type @@ -196,7 +196,7 @@ public class Vala.UnaryExpression : Expression { return false; } - value_type = inner.value_type.copy (); + value_type = inner.value_type; break; case UnaryOperator.INCREMENT: case UnaryOperator.DECREMENT: @@ -214,7 +214,7 @@ public class Vala.UnaryExpression : Expression { return false; } - value_type = inner.value_type.copy (); + value_type = inner.value_type; break; case UnaryOperator.REF: case UnaryOperator.OUT: @@ -223,7 +223,7 @@ public class Vala.UnaryExpression : Expression { (ea != null && ea.container.value_type is ArrayType)) { // ref and out can only be used with fields, parameters, local variables, and array element access lvalue = true; - value_type = inner.value_type.copy (); + value_type = inner.value_type; } else { error = true; Report.error (source_reference, "ref and out method arguments can only be used with fields, parameters, local variables, and array element access"); |