
;; Copyright (C) 2018 Tommi Höynälänmaa

;; Expected results: translation error

(define-proper-program (tests test620)

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

  (define-class <a> <object> #t #f #f public ()
    ((i <integer> public public)))

  (define-class <b> <a> #t #f #f public ()
    ((r <real> public public)))

  (define-param-class :c (%type) <object> #t #f #f public ()
    ((x %type public public)))

  (define-param-class :d (%type) (:c %type) #t #f #f public ()
    ((s <symbol> public public)))

  (prelink-body (standard-library core))

  (define-simple-proc main (() <none> nonpure)
    (let ((b (make <b> 1 1.5))
	  (d (make (:d <integer>) 2 'abc)))
      (console-display-line (static-cast <a> b))
      (console-display-line (static-cast (:c <integer>) d)))))
