;; -*-theme-d-*-

;; Copyright (C) 2008-2013 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 test51)


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


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


  (add-method my-proc2
    (lambda (((x1 <string>)) <string> pure)
      (my-proc1 x1 x1)))

  (define main
    (lambda (() <none> nonpure)
      (console-display (my-proc2 "abc")))))
