Skip to content

Incorrect parameterized typecheck #1870

Description

@bioball

This code:

class Foo { bar: Int }
const function isOk(f: Foo) = f.bar > 0
typealias T<X> = Int(isOk(new { bar = 1 }) && this is X)

res = 3 is T<String>

Gives

res = true

But should be:

res = false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions