Open dgruntz opened 1 year ago
It looks like the problem is because varargs are erased to Seq
so there's a mismatch between what the implementation of applyDynamic
in reflect.Selectable
gets from reflection and what the compiler would expect to be there. Seems related to https://github.com/lampepfl/dotty/issues/16995
Compiler version
3.2.0
Minimized code
Output
Expectation
No exception should be thrown and the result of the two invocations should be the empty string or the string "foo", i.e. the behaviour should be similar as if explicit types were used: