Skip to content

dhall lint produces ill-typed program if names are shadowed #2480

Closed
@mmhat

Description

@mmhat

Consider the following Dhall files:

-- File: schema.dhall
{ Type = {}, default = {=} }
-- File: bug.dhall
let Foo = (./schema.dhall).Type

let f : Foo -> Foo = \(x : Foo) -> x

let Foo = ./schema.dhall

in {Foo, f}

When one runs dhall lint bug.dhall the content of the file is

let Foo = ./schema.dhall

let f
    : Foo -> Foo
    = \(x : Foo) -> x

in  { Foo, f }

which is ill-typed.

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