-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
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
AssertionError [ERR_ASSERTION]: Should be impossible, disallowed by converter after upgrading to 0.20.31 #1538
AssertionError [ERR_ASSERTION]: Should be impossible, disallowed by converter after upgrading to 0.20.31 #1538
Comments
This is completely unactionable without a reproduction. |
@Gerrit0 I understand, but could you help me to trace the problem down? The assert does not give an indication on what source file caused the error and without that information, I would not know where to start. |
If you open ... I should probably create a custom assert function that automatically annotates assert messages with useful info. It's entirely too easy to forget to do it somewhere. |
The problem can be reproduced with the following example: export class UiElement {}
export class UiForm {
/**
* Get the element by name.
*/
public getElementByName<T=UiElement>(elementName: string, cls?: new (...a: Array<any>) => T): T {
return null as unknown as T;
}
} |
This would be a great improvement. After your reply, I remembered to already have modified the assert in the past but just forgot. |
Doh. Of course that fails.. I'm just surprised none of the existing tests ran into that... thanks for the repro! |
Search terms
AssertionError [ERR_ASSERTION]: Should be impossible, disallowed by converter.
Expected Behavior
Actual Behavior
After upgrading from 0.20.30 to 0.20.31 the following assertion is thrown:
Steps to reproduce the bug
Environment
The text was updated successfully, but these errors were encountered: