scripting warning
Bug #867381 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Markos Zaharioudakis |
Bug Description
Would it be possible to raise a warning ("expected the function to return
xs:integer but it returns empty sequence") for the following function
declare function local:foo() as xs:integer
{
1;
2;
};
The problem is that when migrating from the old to the new scripting,
it easy to oversee problems where you would expect the function
to return something but it doesn't because of the last semi-colon.
A warning would help during the migration.
To post a comment you must log in.
Matthias, is this still relevant? In any case, I don't really understand what you are asking for: your example should raise an error anyway.