;; -*-theme-d-*-

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

;; Expected results: translation error


(define-proper-program (tests test293)

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


  (define-class <my-object> <object> #t #f #f public ()
    ((id (:maybe <string>) public public 1)))


  (define-simple-proc main (() <none> nonpure)
    (let ((obj (make <my-object>)))
      (field-set! obj 'id "abc")
      (console-display (field-ref obj 'id))
      (console-newline))))
