flan/test/programs/pkg-hidden-main.flan

13 lines
424 B
Plaintext

;;;; A name the import did not bring.
;;;;
;;;; sand.fln declares a main and this imports it, so sand/main is a name
;;;; somebody might reasonably write — and is not one. Left to the checker it
;;;; would be "unknown name", which is true and unhelpful; the refusal has to
;;;; say the name is missing on purpose. Never built: the refusal is the test.
(import sand "../../sand.fln")
(defn main [] i32
(sand/main)
0)