;; -*-theme-d-*-

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

;; Expected results: error


(define-script (tests test607)

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

  (prelink-body (standard-library console-io))

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

  (declare gl-a <a>)

  (console-display-line (field-ref gl-a 'r))

  (define gl-a <a> (make <a> 1 1.5))

  (console-newline))
