
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.
8 lines
124 B
Racket
8 lines
124 B
Racket
#lang typed/racket
|
|
|
|
(define-signature y^ ([y : Integer]))
|
|
|
|
(let ((y 1))
|
|
(unit (import) (export y^)
|
|
(define y 2)))
|