dynamic array type expression changed: 0 -> _

This commit is contained in:
ProgramSnail 2023-07-08 13:23:52 +03:00
parent 3815f8259b
commit d6e6d5cc2c
4 changed files with 42 additions and 20 deletions

View file

@ -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
}