;; -*-theme-d-*-

;; Copyright (C) 2008-2018 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 test337)


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


  (define-simple-proc my-proc1
    (((a <integer>) (b <integer>)) <integer> pure)
    (+ a b))


  (define-param-proc my-proc2 (%type)
    (((x1 %type) (x2 %type)) %type pure)
    (my-proc1 x1 x2))


  (define main
    (lambda (() <none> nonpure)
      (console-display-line (my-proc2 1 2)))))
