;; -*-theme-d-*-

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

;; Expected results: translation error
;;    because trying to define a variable declared in a different module.

(define-proper-program (tests test313)

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

  (define-simple-proc substring
      (((str <string>) (i-start <integer>) (i-end <integer>))
       <string>
       pure)
    "abc")

  (define-simple-proc main (() <none> nonpure)
    (console-display-line (substring "abcdef" 1 2))))

