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

;; Expected results: translation error
;;   (type mismatch in a static cast)

(define-proper-program (tests test616)

  (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-simple-proc main (() <none> nonpure)
    (let ((a (make <a> 1)))
      (console-display-line (static-cast <b> a)))))
