We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbae57a commit 1def7abCopy full SHA for 1def7ab
godel-script/godel-frontend/src/semantic.cpp
@@ -2359,7 +2359,7 @@ bool semantic::check_single_argument(expr* argument, const symbol& param) {
2359
}
2360
2361
// check type match
2362
- if (param!=expr_infer.type) {
+ if (param != expr_infer.type && !expr_infer.type.is_err()) {
2363
err.err(argument->get_location(),
2364
"expected \"" + param.full_path_name() +
2365
"\" but get \"" + expr_infer.type.full_path_name() + "\"."
@@ -2864,7 +2864,8 @@ void semantic::query_check(query_decl* node) {
2864
.is_set = false
2865
};
2866
2867
- if (initial_infer.type!=from_variable_type) {
+ if (initial_infer.type != from_variable_type &&
2868
+ !initial_infer.type.is_err()) {
2869
err.err(i->get_init_value()->get_location(),
2870
"expected \"" + from_variable_type.full_path_name() +
2871
"\" but get \"" + initial_infer.type.full_path_name() +
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments