Skip to content

Shadowing in a lambda list gives an unexpected result #567

@david-christiansen

Description

@david-christiansen

Moved from:
GaloisInc/saw-script#367

This is unexpected:

┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻  
┃  ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃  
┗━╸╹┗╸ ╹ ╹   ╹ ┗━┛┗━╸
version 2.6.1

Loading module Cryptol
Cryptol> :t \x x -> x : [8]
[warning] at <interactive>:1:4--1:5
    This binding for x shadows the existing binding from
    (at <interactive>:1:2--1:3, x)
(\x x -> x : [8]) : {a} [8] -> a -> [8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething not working correctlyrenamerIssues related to scoping and name resolution.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions