mirror of
https://github.com/thufschmitt/tix-papers.git
synced 2024-08-16 16:20:47 +03:00
typing: replace interfaces by argument annotations
The return type annotation isn't really useful, so maybe we can drop it
This commit is contained in:
parent
75d164c873
commit
2c83cb0d5c
@ -17,11 +17,11 @@
|
||||
|
||||
\and
|
||||
\inferrule{%
|
||||
\forall (\sigma \rightarrow \tau) \in \mathbb{I}, \\
|
||||
\Gamma; \ofTypeP{p}{\sigma} \vdash e: \tau' \\
|
||||
\tau' \subtype \tau
|
||||
\forall i \in \discrete{1}{n}, \\
|
||||
\Gamma; \ofTypeP{p}{\sigma_i} \vdash e: \tau_i \\
|
||||
}{%
|
||||
\lambda^\mathbb{I}p.e : \text{TypeOf}(\mathbb{I})
|
||||
\lambda \left(p:{\bigvee\limits_{i=1}^n\σ}\right).e :
|
||||
\bigwedge\limits_{i=1}^n \left(\σ \rightarrow \τ\right)
|
||||
}
|
||||
(Abs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user