Skip to content

A bug about casting to supertype #72

Open

Description

@LuKuangChen

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

(: (tuple 42 #f) (Tuple Int))

Activity

  1. self-assigned this
    on Jan 17, 2019
  2. akuhlens commented on Mar 1, 2019

    @akuhlens
    Collaborator

    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions