CodeSampleX

Exemple

Prove that sorbet-runtime does not clear a previously computed signature cache entry when a typed method is redefined without a new `sig`.

sha256:ff4bc542fba69abb1feb844ebf4739a88b4e1ecb4d8448961fc4b6418895e1d2

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Prove that sorbet-runtime does not clear a previously computed signature cache entry when a typed method is redefined without a new `sig`. HOW
Paquets
sorbet-runtime 0.6.13427
Environnement
ruby
Créé
2026-08-17T02:48:48Z

Ce que l'on suppose souvent

Replacing a `sig`-annotated method with a plain method definition should discard the prior runtime signature metadata so internal signature lookup returns no stale declaration for that method key.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification