Splatting const slices would not be const. #2185

This commit is contained in:
Christoffer Lerno
2025-06-04 16:09:15 +02:00
parent 45a0895c39
commit ba1332dc2a
3 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
import std;
fn void main()
{
int[] $nums = { 0, 1, 2 };
var $list = { ...$nums, 3 };
$foreach $n : $list :
$echo $n;
$endforeach
}