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

A bug about casting to supertype #72

Open
LuKuangChen opened this issue Jan 16, 2019 · 1 comment
Open

A bug about casting to supertype #72

LuKuangChen opened this issue Jan 16, 2019 · 1 comment
Assignees
Labels

Comments

@LuKuangChen
Copy link

This program cannot be compiled with the latest compiler in the master branch.

(: (tuple 42 #f) (Tuple Int))
@deyaaeldeen deyaaeldeen self-assigned this Jan 17, 2019
@akuhlens
Copy link
Collaborator

akuhlens commented Mar 1, 2019

Here is another program that we should make sure that the type-checker and runtime rejects.

(ann (vector 1 (tuple 1 #f)) (Vect (Tuple Int)))

Here the contents of the vector have to be invariant with respect to the subtyping relationship.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants