Skip to content

Commit

Permalink
array dimensions check
Browse files Browse the repository at this point in the history
  • Loading branch information
smaludzi committed Sep 2, 2023
1 parent 839708c commit 008b8f3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sample/sample123.nev
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

func f1(E : int, a[D] : int) -> int
{
assert(D == E);
0
}

func main() -> int
{
f1( 0, [] : int );
f1( 3, [ 1, 2, 3 ] : int );
f1( 10, {[ 10 ]} : int );
0
}

0 comments on commit 008b8f3

Please sign in to comment.