irken-compiler icon indicating copy to clipboard operation
irken-compiler copied to clipboard

silently ignored invalid type-annotation

Open jeske opened this issue 8 years ago • 1 comments

This program has an incorrect type-annotation for the function work_on_file. However, irken will silently compile it just fine. Adding the -types option curiously causes it to catch the type error.

(include "lib/basis.scm")

(typealias file_descriptor int)

(define (work_on_file f) : (file_descriptor)  ;; should be (file_descriptor -> int
   0 )

(work_on_file 1)

jeske avatar May 06 '17 08:05 jeske

I think this is a dup of #24.

samrushing avatar May 09 '17 05:05 samrushing