Skip to content

Commit

Permalink
Correct check for Any clause in semi-structured match support (#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-ssh16 authored Oct 20, 2023
1 parent 514d1bb commit bb45920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ function <<access.private>> meta::relational::functions::pureToSqlQuery::process
let functionCount = $functions->size();
let allFunctionsSubtypes = $functions->size()->range()->map(ind | let functionType = $functions->at($ind)->meta::pure::functions::meta::functionType().parameters->at(0).genericType.rawType->toOne();
assertFalse($functionType->instanceOf(PrimitiveType), 'Match does not support checking on primitive data type..! Currently checking on : ' + $functionType->toString());
if($functionType->isAnyClass(),
if($functionType == Any,
| assert($ind == $functionCount-1, 'Any should be used as a default type at the end of match');
[];,
|
Expand Down

0 comments on commit bb45920

Please sign in to comment.