sva37684.scm 323 B

12345678910111213
  1. (define-alias C java.lang.Character)
  2. (define c1 ::C (C:valueOf #\X))
  3. (define c2 ::C:Subset C:UnicodeBlock:ARABIC)
  4. (define-simple-class TestNestedType ()
  5. (x1 ::C)
  6. (x2 ::C:Subset))
  7. (define tn ::TestNestedType (TestNestedType x1: c1 x2: c2))
  8. (format #t "x1: ~a x2: ~a~%~!" tn:x1 tn:x2)
  9. ;; Output: x1: X x2: ARABIC