
Most unit forms are supported, including most of the "infer" forms that infer imports/exports/linkages from the current context. Notably, none of the structural linking forms for units are supported, and `define-unit-binding` is also currently unsupported.
13 lines
279 B
Racket
13 lines
279 B
Racket
#;
|
|
(exn-pred #rx"signature definition extends untyped signature")
|
|
#lang racket
|
|
|
|
(module ut1 racket
|
|
(provide a^)
|
|
(define-signature a^ (a)))
|
|
|
|
(module t1 typed/racket
|
|
(require (submod ".." ut1))
|
|
(define-signature a-sub^ extends a^ ())
|
|
(unit (import a-sub^) (export) a))
|
|
|