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
Describe the bug
When declaring a file attribute, the typechecker should make sure the attribute class exists and that the constructor arguments typecheck. This check is not performed when the file does not declare any entities, or if all the declared entities are top-level constant declarations.
Standalone code, or other way to reproduce the problem
Describe the bug
When declaring a file attribute, the typechecker should make sure the attribute class exists and that the constructor arguments typecheck. This check is not performed when the file does not declare any entities, or if all the declared entities are top-level constant declarations.
Standalone code, or other way to reproduce the problem
Simple case, no errors.
The file only contains constants, no errors.
The file contains a non-constant, f.e. a function, 3 errors.
Steps to reproduce the behavior:
Expected behavior
All three cases should emit the following three errors.
Actual behavior
Only the third case, emits errors
Environment
Additional context
This is an edge case, reported for completeness sake.
The text was updated successfully, but these errors were encountered: