diff --git a/racket/collects/syntax/parse/private/minimatch.rkt b/racket/collects/syntax/parse/private/minimatch.rkt index 4992aeecc9..e35321bec6 100644 --- a/racket/collects/syntax/parse/private/minimatch.rkt +++ b/racket/collects/syntax/parse/private/minimatch.rkt @@ -87,6 +87,8 @@ (let ([xps (cdr (vector->list (struct->vector x)))]) (match-p xps (list p ...) success failure)) failure)))] + [(match-p x pattern success failure) + (raise-syntax-error 'minimatch "bad pattern" #'pattern)] )) (define-syntax match-p*