mirror of
https://github.com/anoma/juvix.git
synced 2025-01-05 22:46:08 +03:00
447f2f1dcf
- Fixes #1723 - It refactors parsing/scoping so that the scoper does not need to read files or parse any module. Instead, the parser takes care of parsing all the imported modules transitively.
15 lines
213 B
Plaintext
15 lines
213 B
Plaintext
module A;
|
|
module M;
|
|
module N;
|
|
infix 3 t;
|
|
type T :=
|
|
t : T;
|
|
end ;
|
|
infixr 2 +;
|
|
axiom + : Type → Type → Type;
|
|
end;
|
|
import M;
|
|
f : M.N.T;
|
|
f (_ M.N.t _) := Type M.+ Type M.+ M.MType;
|
|
end;
|