Closed GuntherRademacher closed 8 months ago
Resetting to draft status, because further changes are necessary.
The latest commits complete the changes. FuncType
now is no longer a superclass of MapType
and ArrayType
, rather there now is a new abstract superclass FType
for the three of them:
Type
│
└── FType
│
├── FuncType
├── MapType
└── ArrayType
Also Type
now has a new method funcType()
that returns the FuncType
that can be derived from a Type
, if any.
These changes now pass all BaseX and QT4 tests, fixing the seven QT4 tests mentioned earlier. Also some BaseX tests have been adapted due to incorrect expectations.
This comprises 3 commits:
XQMap.funcType
, create a separateFuncType
for maps, that reflects a min occurrence of 0 (this fixesxqhof21
)MapType
, in order to use it in instance tests (this fixesMapTest-061
,MapTest-062
,MapTest-066
)function-literal-428
,function-literal-430
,function-literal-432
)