BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 267 forks source link

Add function coercion for maps and arrays #2283

Closed GuntherRademacher closed 4 months ago

GuntherRademacher commented 4 months ago

These changes add function coercion for maps and arrays by creating a new function with the required signature, that wraps a map or array function call along with a type check for the required target type:

    final FuncCall funcCall = new DynFuncCall(ii, sc, this, param);
    final TypeCheck check = new TypeCheck(ii, sc, funcCall, ft.declType, true);

This fixes these QT4 test cases:

ChristianGruen commented 4 months ago

Locally merged.