2bc78f171f
VM will crash when factory constructor was passed typedef with type arguments. procedure_type_parameter_count should not include type argument for factory function, as factory function share the same type argument with class. Bug: https://github.com/dart-lang/sdk/issues/37264 Change-Id: I358c6d35cf217162d2b89f7d8fa9d303f981b713 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106563 Reviewed-by: Siva Annamalai <asiva@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Zichang Guo <zichangguo@google.com>