Opened 9 years ago

Closed 9 years ago

#937 closed enhancement (wontfix)

Compiler should warn for invalid type specs in handler-case

Reported by: fare Owned by: gb
Priority: minor Milestone:
Component: Compiler Version: trunk
Keywords: Cc:


Dan Weinreb 2010-05-07 16:29:48 EDT

In a case such as this:

(defun foo (x y)
      (/ x y)
    ((error serious-condition) ()

it would be nice if the compiler could detect that (error serious-condition) is not a valid type (i.e. the programmer omitted the "or").


(defun bar (x)
  (check-type x (error serious-condition))

the compiler does, correctly, issue a warning; could that same mechanism be applied to handler-case?

NB: This was ITA bug 79938.

Change History (2)

comment:1 Changed 9 years ago by gb

  • Owner set to gb
  • Status changed from new to assigned

comment:2 Changed 9 years ago by gb

  • Resolution set to wontfix
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.