;; -*-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
;;   duplicate method definition


(define-proper-program (tests test382)

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

  (define-param-method my-method
      (%type)
      (((str (:maybe <string>)) (o %type)) <string> pure)
    "abc")

  (define-param-method my-method
      (%type)
      (((str (:maybe <string>)) (o %type)) <string> pure)
    "abc")

  (define-simple-proc main (() <none> nonpure)
    (console-display-line (my-method "abc" 1))))

