You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gives a parser error, because int is a primitive type, which cannot be implemented. It would be ideal to make this into a typechecking error instead so the compilation process can continue.
This can be done as follows:
Create a new class extending GenericBound (e.g., PrimitiveBound).
In an AST transform, log an error every time a PrimitiveBound is encountered, and turn it into a standard Top bound.
The text was updated successfully, but these errors were encountered:
Currently, the following code:
gives a parser error, because
int
is a primitive type, which cannot beimplement
ed. It would be ideal to make this into a typechecking error instead so the compilation process can continue.This can be done as follows:
GenericBound
(e.g.,PrimitiveBound
).PrimitiveBound
is encountered, and turn it into a standardTop
bound.The text was updated successfully, but these errors were encountered: