;; -*-theme-d-*-

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

;; Expected results: error
;;   Invalid Theme-D object

(define-proper-program (tests test662)

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

  (define my-proc
    (prim-proc return-invalid-object () <object> pure))

  (define-simple-proc main (() <none> nonpure)
    (console-display-line (my-proc))))
