@nospecialize
could use argument validation
#49512
Labels
domain:error messages
Better, more actionable error messages
@nospecialize
could use argument validation
#49512
I recently discovered a few footguns with
@nospecialize
:This happens because the function definition gets parsed as a kwarg to
@nospecialize
. This makes no sense of course, but no error is thrown.Similarly
Here, the compiler doesn't complain that
c
is not even an argument. This looks like a mistake that someone will 100% make eventually.The text was updated successfully, but these errors were encountered: