when openArray in multiple types is set in function's argument, compile error is occurred.
proc f1(b: openArray[bool]) =
echo b
f1(@[true]) #fine
f1([true]) #fine
proc f2(b: bool or openArray[bool]) =
echo b
f2(true) #fine
f2(@[true]) #error
f2([true]) #error
why is that situation f1 is acceptable with openArray but situation f2 is not acceptable with openArray?
to @demotomohiro
I see already there is the same issue. Is it correct to consider that this problem is a bug?
to @ynfle
great! This is what I needed. thank you.