;; -*-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 error
;;   argument with type <none>

(define-proper-program (tests test387)

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

  (define-simple-proc main (() <none> nonpure)
    (console-display-line
     (match-type (+ 1 2)
       ((r <real>) 1.0)
       ((str <string>) str)))))
