Skip to content
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

Invalid type application breaks statics throwing exception #1459

Open
7h3kk1d opened this issue Jan 10, 2025 · 4 comments
Open

Invalid type application breaks statics throwing exception #1459

7h3kk1d opened this issue Jan 10, 2025 · 4 comments
Assignees
Labels
bug critical critical bug

Comments

@7h3kk1d
Copy link
Contributor

7h3kk1d commented Jan 10, 2025

Screenshot From 2025-01-10 10-45-49
Trying to write this expression with an invalid type Int(7) or Int(Float) throws an exception as soon as you try to assign it a value.

This triggers a statics exception (Failure "type application in dynamics")

type x = Int(Float) in let y : x =  1

This alone triggers an exception (Failure "type application in dynamics") in dynamics:

type x = Int(Float) in let y : x
@7h3kk1d 7h3kk1d added the bug label Jan 10, 2025
@cyrus- cyrus- added the critical critical bug label Jan 12, 2025
@cyrus- cyrus- moved this to Team Statics in Hazel Big Board Jan 12, 2025
@cyrus- cyrus- assigned isdiemer and unassigned Negabinary Feb 19, 2025
@isdiemer
Copy link

Image

@isdiemer
Copy link

isdiemer commented Mar 5, 2025

Labeled Tuples changes error message
Image

@isdiemer
Copy link

isdiemer commented Mar 5, 2025

Image

I think the issue is in this line, where we naiively continue with the Ap without checking the normalized type of t1 and t2 - I need to look into what the allowed types should be

@isdiemer
Copy link

isdiemer commented Mar 5, 2025

Image

Adding the expression, and then the type annotation yields the old exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug critical critical bug
Projects
Status: Team Statics
Development

No branches or pull requests

4 participants