
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.
11 lines
212 B
Racket
11 lines
212 B
Racket
#lang typed/racket
|
|
|
|
(define-signature yz-sig ([y : Integer] [z : Integer]))
|
|
(define y 1)
|
|
(define z 10)
|
|
(define-values/invoke-unit (unit-from-context yz-sig)
|
|
(import)
|
|
(export (prefix x: yz-sig)))
|
|
(+ x:y x:z)
|
|
|