Opened 7 years ago

Closed 7 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:

Description

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

In a case such as this:

(defun foo (x y)
  (handler-case
      (/ x y)
    ((error serious-condition) ()
      5)))

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").

In

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

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 7 years ago by gb

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

comment:2 Changed 7 years ago by gb

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