aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-09-13 22:20:27 +0100
committerGinger Bill <bill@gingerbill.org>2017-09-13 22:20:27 +0100
commit333db4dc94cb1d18c54dda74a7807cea66c131ce (patch)
treec993ff98cffe1082f525c7ab7a829cc7c021efaa /src/check_expr.cpp
parentcbcf4b6071a55a8e80c41647e81715cf8505bdf8 (diff)
Fix issues #95 and #96
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index db8aef9f9..13b066835 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1886,11 +1886,6 @@ Type *check_get_params(Checker *c, Scope *scope, AstNode *_params, bool *is_vari
}
- if (operands != nullptr) {
- GB_ASSERT_MSG(operands->count >= min_variable_count, "%td vs %td", operands->count, variable_count);
- }
-
-
bool is_variadic = false;
bool is_c_vararg = false;
Array<Entity *> variables = {};
@@ -1949,13 +1944,13 @@ Type *check_get_params(Checker *c, Scope *scope, AstNode *_params, bool *is_vari
if (specialization == t_invalid){
specialization = nullptr;
}
- if (specialization) {
- if (!is_type_polymorphic(specialization)) {
- gbString str = type_to_string(specialization);
- error(tt->specialization, "Type specialization requires a polymorphic type, got %s", str);
- gb_string_free(str);
- }
- }
+ // if (specialization) {
+ // if (!is_type_polymorphic(specialization)) {
+ // gbString str = type_to_string(specialization);
+ // error(tt->specialization, "Type specialization requires a polymorphic type, got %s", str);
+ // gb_string_free(str);
+ // }
+ // }
if (operands != nullptr) {
detemine_type_from_operand = true;