mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-26 00:38:43 +00:00
dynamic array type expression changed: 0 -> _
This commit is contained in:
parent
3815f8259b
commit
d6e6d5cc2c
4 changed files with 42 additions and 20 deletions
|
|
@ -188,7 +188,7 @@ typeclass \enum =
|
|||
|
||||
//
|
||||
|
||||
decl ( -- ) : \int -> \int -> \int`0
|
||||
decl ( -- ) : \int -> \int -> \int`_
|
||||
def ( -- ) : begin end = {
|
||||
var current = begin
|
||||
return (while current < end do {
|
||||
|
|
@ -252,10 +252,10 @@ def print-anything : x = \io..print: (x..show:)
|
|||
// return a-copy
|
||||
// }
|
||||
|
||||
struct \array 'a = & 'a`0
|
||||
struct \array 'a = & 'a`_
|
||||
|
||||
namespace \array {
|
||||
decl of : 'a`0 -> \array['a]
|
||||
decl of : 'a`_ -> \array['a]
|
||||
def of : x = $array['a] & x
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue