;; -*-theme-d-*-

;; Copyright (C) 2016 Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK

(define-proper-program (tests test439)

  (import (standard-library core)
	  (standard-library promise)
	  (standard-library console-io))


  (define-simple-proc main (() <none> nonpure)
    (let ((promise1 (delay
		     (begin
		       (force-pure-expr (console-display-line "promise HEP"))
		       "abc")))
	  (promise2 (delay-nonpure
		     (begin
		       (console-display-line "promise HEP2")
		       "def"))))
      (console-display-line (force promise1))
      (console-display-line (force promise1))
      (console-display-line (force-nonpure promise2))
      (console-display-line (force-nonpure promise2)))))
 
