Skip to content

Bad Error Message for Use Before Definition #26

@stamourv

Description

@stamourv

This program:

#lang dssl2

def fun():
    helper()
    def helper():
        return 0
fun()

produces the error:

real-definition: undefined;
 cannot use before initialization

without a useful source location.

real-definition looks like some internal name leaking, but the name from the program would be better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions