;; -*-theme-d-*-

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

;; Expected results: translation error

(define-proper-program (tests test655)

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

  (define-generic-proc my-generic)

  (declare my-proc (:procedure (<integer> <integer>) <integer> pure))

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

  (define my-proc
    (prim-proc theme-integer/ (<integer> <integer>) (:union <integer> <real>)
	       pure))

  (add-method my-generic my-proc)

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