Skip to content

Commit

Permalink
usage of 'xxxRange' and 'in'
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Feb 18, 2024
1 parent d754bdb commit b136a18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/compiler/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5099,23 +5099,23 @@ For* Parser::ParseEach(bool reverse, int depth)
count_type = TypeFactory::Instance()->MakeType(CHAR_TYPE);
}
else {
ProcessError(L"Range class '" + ident_type + L"' cannot be bound to index variable '" + bound_ident + L"', try using the ':' operator");
ProcessError(L"'" + ident_type + L"' range variable must be bound using the ':' operator");
}
}
else if((ident_type == L"IntRange" || ident_type == L"System.IntRange")) {
if(!bind_var) {
count_type = TypeFactory::Instance()->MakeType(INT_TYPE);
}
else {
ProcessError(L"Range class '" + ident_type + L"' cannot be bound to index variable '" + bound_ident + L"', try using the ':' operator");
ProcessError(L"'" + ident_type + L"' range variable must be bound using the ':' operator");
}
}
else if(ident_type == L"FloatRange" || ident_type == L"System.FloatRange") {
if(!bind_var) {
count_type = TypeFactory::Instance()->MakeType(FLOAT_TYPE);
}
else {
ProcessError(L"Range class '" + ident_type + L"' cannot be bound to index variable '" + bound_ident + L"', try using the ':' operator");
ProcessError(L"'" + ident_type + L"' range variable must be bound using the ':' operator");
}
}
}
Expand Down
Binary file modified docs/api.zip
Binary file not shown.

0 comments on commit b136a18

Please sign in to comment.