;; -*-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 error
;;   (field type <none>)

(define-proper-program (tests test624)

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

  (define-param-class :a (%type) <object> #t #f #f public ()
    ((x1 %type public public)
     (x2 <none> public public)))

  (define-simple-proc main (() <none> nonpure)
    (let ((a (make (:a <integer>) 1 2)))
      (console-display-line (field-ref a 'x1)))))
