Matching enum in array length to polymorphic parameter

Hello,

I have been using the windows-amd64-dev-2026-08 release, but it seems I hit a bug in the compiler that prevented passing an enum as a typeid to define an enumerated array. After finding that the bug was recently fixed, I compiled the Odin executable, and pleasantly found that indeed it works now.

However, the compiler is complaining about something else on another part of the code. I have been reusing the same polymorphic parameter to ensure that the same enum is passed. For example:

package test

EnumTest :: enum { A }

StructTestEnum :: struct( $T : typeid ){}
StructTestInt :: struct( $I : int ){}

procTestEnum :: proc( val : [ $T2 ]StructTestEnum( T2 ) ){}
procTestInt :: proc( val : [ $T2 ]StructTestInt( T2 ) ){}

main :: proc() {
// This doesn’t compile
a : [ EnumTest ]StructTestEnum( EnumTest )
procTestEnum( a )

// This works fine
b : [ 1 ]StructTestInt( 1 )
procTestInt( b )

}

This compiles fine with the 2026-08 release, but with the most recent version I get:

bug.odin(14:19) Error: Cannot determine polymorphic type from parameter: ‘[EnumTest]StructTestEnum($T=EnumTest)’ to ‘[0]StructTestEnum($T)’

That [0] strikes me as odd. If I separate the polymorphic parameter in procTestEnum to:

procTestEnum :: proc( val : [ $T2 ]StructTestEnum( $T3 ) ){}

It compiles fine. Is this another bug or am I doing something wrong?