summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/linear/fail_changed_scope.yql
blob: 315a7a1dda11008ab2901f8544374e4123ccafdd (plain) (blame)
1
2
3
4
5
6
7
8
/* custom error: The linear value changed lambda scope */
$b={4:5};

select ($x)->(Block(($a)->{
    $d = ToMutDict($b, $a);
    $d = MutDictUpsert($d, $x, 1);
    return FromMutDict($d);
}))(a) from AS_TABLE(Opaque([<|a:1|>, <|a:2|>, <|a:3|>]))