impc:compiler:print-no-redefinitions-error   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(define impc:compiler:print-no-redefinitions-error
  (lambda (name oldtype newtype)
    (print-with-colors *impc:compiler:pretty-print-error-color*
                       'default #t (print "Compiler Error"))
    (print " cannot redefine or overload the type signature of existing functions.  In this case, ")
    (print-with-colors *impc:compiler:pretty-print-name-color* 'default #t (print name)) (print " from ")
    (print-with-colors *impc:compiler:pretty-print-type-color* 'default #f (print oldtype)) (print " to ")
    (print-with-colors *impc:compiler:pretty-print-type-color* 'default #f (print newtype "\n"))
    (if (impc:aot:currently-compiling?)
        (quit 2)
        (throw ""))))


Back to Index