diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-04 10:19:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 10:19:00 +0100 |
commit | 7889e9b7ca30418d914b8c698ea39490bc9be990 (patch) | |
tree | a2ebacc202fdca89f0e958e0c8af7cf0b34975cd /modules/gdscript/gdscript_parser.h | |
parent | 31206ca4e98d55767f73416a4ce1b915be4c928e (diff) | |
parent | d0b08342b8250aa76cdf934b97f2ab3ac114e259 (diff) |
Merge pull request #26562 from vnen/gdscript-no-implicit-cast
Forbid implicit type conversion in GDScript
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index 809bff8f20..167132e390 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -607,7 +607,7 @@ private: Variant::Operator _get_variant_operation(const OperatorNode::Operator &p_op) const; bool _get_function_signature(DataType &p_base_type, const StringName &p_function, DataType &r_return_type, List<DataType> &r_arg_types, int &r_default_arg_count, bool &r_static, bool &r_vararg) const; bool _get_member_type(const DataType &p_base_type, const StringName &p_member, DataType &r_member_type) const; - bool _is_type_compatible(const DataType &p_container, const DataType &p_expression, bool p_allow_implicit_conversion = false) const; + bool _is_type_compatible(const DataType &p_container, const DataType &p_expression) const; DataType _reduce_node_type(Node *p_node); DataType _reduce_function_call_type(const OperatorNode *p_call); |