Skip to content
  • Marius Gerbershagen's avatar
    cmp: fix bad warnings for type declarations inside locally · d54c1103
    Marius Gerbershagen authored
    Also search lexical environment for variables instead of only the
    list of variables being established by the current form (which is nil
    anyway in the case of locally; only let or multiple-value-bind
    statements create new variables).
    
    The declaration is still ignored, but fixing that would require a much
    larger refactor because currently variable types are associated to the
    variable itself. Thus the type can only be set for the full scope in
    which the variable is active and not locally in some subscope.
    d54c1103