;; -*-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: translation and running OK

(define-proper-program (tests test669)

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

  (declare-method my-method (:simple-proc (<integer>) <integer> pure))

  (define-simple-proc my-proc (((i <integer>)) <none> nonpure)
    (console-display-line (my-method i)))

  (define-simple-method my-method (((i <integer>)) <integer> pure)
    (+ i 1))

  (define-simple-proc main (() <none> nonpure)
    (my-proc 10)))
