mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: impl polymorphic type declaration
This commit is contained in:
parent
ea132e2345
commit
5052ebb077
10 changed files with 289 additions and 85 deletions
|
@ -1,6 +1,7 @@
|
|||
# TODO: dependent (static shaped)
|
||||
.NDArray = 'ndarray': ClassType
|
||||
.NDArray <: Num
|
||||
.NDArray = 'ndarray': (T: Type) -> ClassType
|
||||
.NDArray(T) <: Output T
|
||||
.NDArray(_) <: Num
|
||||
.NDArray.
|
||||
shape: [Nat; _]
|
||||
ndim: Nat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue