diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-01 14:13:31 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-20 00:51:37 +0100 |
commit | 25f8cafdb24ec89a37f6eca10d00e414b727975e (patch) | |
tree | 706b8b7725594eb187e86f4ea96bc68460dc6cf6 /vala/valapointertype.vala | |
parent | 83112b21e245afec5e0d2a2b707d40259589db67 (diff) | |
download | vala-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.vala | 2 |
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) { |