Should this code work?

uniform sampler2D leafTextures[2] : source_color;

It does work, but when this code is in my shader my app won't close. The game stops, but the window freezes and hangs at this method:

godotsharp_internal_refcounted_disposed

When I change the shader so it's not longer an array everything works as expected.

Sounds like it might have produced a memory leak perhaps and no I don't think that is intended to work. Might perhaps be worth opening an issue on the tracker for this. Make sure to search the tracker first tho, perhaps someone has already reported it.

cybereality I should have mentioned I am using godot 4. I was just wondering if it "should" work before i opened an issue about it. Thank you.