errors2.scm 361 B

123456789101112
  1. (module-compile-options warn-as-error: #t)
  2. ;; Swapped operand order.
  3. (format #t (instance? <java.lang.String> 1234))
  4. ;; Diagnostic: errors2.scm:4:42: not a type or class expression
  5. (define (bad-throwable1)
  6. (primitive-throw java.lang.NullPointerException))
  7. ;; Diagnostic: errors2.scm:8:20: type class is incompatible with required type java.lang.Throwable