summaryrefslogtreecommitdiff
path: root/vala/valapointertype.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-12-01 14:13:31 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-12-20 00:51:37 +0100
commit25f8cafdb24ec89a37f6eca10d00e414b727975e (patch)
tree706b8b7725594eb187e86f4ea96bc68460dc6cf6 /vala/valapointertype.vala
parent83112b21e245afec5e0d2a2b707d40259589db67 (diff)
downloadvala-25f8cafdb24ec89a37f6eca10d00e414b727975e.tar.gz
vala: Allow get_actual_type() to be used for expected failures
If the passed node_reference is null there won't be any error reporting. The resovled DataType will be an InvalidType on errors as usual.
Diffstat (limited to 'vala/valapointertype.vala')
-rw-r--r--vala/valapointertype.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valapointertype.vala b/vala/valapointertype.vala
index 6e0d799cf..01d759eda 100644
--- a/vala/valapointertype.vala
+++ b/vala/valapointertype.vala
@@ -123,7 +123,7 @@ public class Vala.PointerType : DataType {
return false;
}
- public override DataType get_actual_type (DataType? derived_instance_type, List<DataType>? method_type_arguments, CodeNode node_reference) {
+ public override DataType get_actual_type (DataType? derived_instance_type, List<DataType>? method_type_arguments, CodeNode? node_reference) {
PointerType result = (PointerType) this.copy ();
if (derived_instance_type == null && method_type_arguments == null) {