Verse Runtime Error when using defaulted array parameter to function

Reference ID

b6ff1110-4240-920b-ef64-3aa85a016a12

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

Using an default function parameter that is an array and defaults to an empty array causes a verse runtime error when using the array in a for loop.

Steps to Reproduce

Create a function that has a default function parameter that is an array and iterate that array. For example:
DoStuff(?EnumArray : e_enum_type = array{}) : e_enum_type =
for(Enum : EnumArray):

Then call the function without specifying the parameter
DoStuff()

Expected Result

Function should complete as normal and do nothing with the empty array

Observed Result

Verse Runtime Error

Platform(s)

windows

Additional Notes

I only tested this with an enum type, not sure if the behavior is different with other types.