tov / dssl2

A data structures student language, version 2
MIT License
9 stars 5 forks source link

Bad Error Message for Use Before Definition #26

Open stamourv opened 4 years ago

stamourv commented 4 years ago

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.