#542 closed defect (fixed)
Anything type does not work well
Reported by: | César Pérez Álvarez | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | Kernel | Version: | 1.1.6 |
Severity: | blocker | Keywords: | |
Cc: |
Description
If we run this code:
Anything AnyFunction(Text grammar)
{ If(grammar== "Serie", CalInd(C,Diario), 1)};
Serie MyFunction(Real h)
{
Serie ser = h*AnyFunction("Serie");
ser
};
Serie obj = MyFunction(7);
This code generate the following error:
ERROR: [1] AnyFunction no es un operador de tipo Serie
ERROR: [2] Argumentos erróneos para Serie * S1 * S2 {Serie S1, Serie S2}
ERROR: [3] ser no se pudo crear.
ERROR: [4] ser no es un objeto valido para el tipo Serie.
ERROR: [5] Fallo en la función "MyFunction"
ERROR: [6] obj no se pudo crear.
In oldest version (1.1.5) the function AnyFunction does not cause a problem at all.
Change History (4)
comment:1 Changed 17 years ago by
Status: | new → assigned |
---|
comment:2 Changed 17 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|---|
Status: | assigned → new |
comment:3 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Problem has been fixed in CVS.
BGrammar::FindOperator must accept objects of type Code returning grammar AnyThing
comment:4 Changed 17 years ago by
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000542 |
---|
We will work about this problem
Thanks to report it