Open mikestillman opened 1 year ago
This is already checked when creating a method with method(TypicalValue => T)
here:
https://github.com/Macaulay2/M2/blob/8df01f4b5fd75a15bd1004306185afd55241cc3c/M2/Macaulay2/m2/methods.m2#L182-L185
This needs to be fixed in https://github.com/Macaulay2/M2/blob/8df01f4b5fd75a15bd1004306185afd55241cc3c/M2/Macaulay2/d/hashtables.dd#L374 and https://github.com/Macaulay2/M2/blob/8df01f4b5fd75a15bd1004306185afd55241cc3c/M2/Macaulay2/d/hashtables.dd#L408
For starters, what is the difference between those two functions?
The following code (note the return type is
ideal
, notIdeal
!) gives an error duringinstallPackage
. Removing the doc node, or changing the return type toIdeal
both work correctly. Perhaps when creating a method, we should make sure the suggested return type is a type?