We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@expected
Describe the bug
The type checker and the interpreter do not agree on valid values for the @expected test annotation.
RuntimeException
To Reproduce
import Exception; data CustomException = e() ; // SUCCEED @expected{NotImplemented} test bool runtimeExceptionExpectConstructor() { throw NotImplemented("fail"); } @expected{e} // type error : Expected `RuntimeException`, found `CustomException::e()` test bool constructorExpectConstructor() { throw e(); } // FAIL @expected{RuntimeException} test bool runtimeExceptionExpectADT() { throw NotImplemented("fail"); } @expected{CustomException} // type error : Expected `RuntimeException`, found `CustomException::e()` test bool constructorExpectADT() { throw e(); } @expected{"someNode"()} // type error : Undefined constructor or data `"someNode"()` test bool \node() { throw "someNode"(); } @expected{"s"} // type error : Undefined constructor or data `"s"` test bool \str() { throw "s"; } @expected{8} // type error : Undefined constructor or data `8` test bool \int() { throw 8; }
Expected behavior
@expected{RuntimeException}
The text was updated successfully, but these errors were encountered:
PaulKlint
No branches or pull requests
Describe the bug
The type checker and the interpreter do not agree on valid values for the
@expected
test annotation.RuntimeException
ADT type or any constructor of that type. It various raises errors on anything else.To Reproduce
Expected behavior
@expected{RuntimeException}
).The text was updated successfully, but these errors were encountered: