CodeSampleX

Ejemplo

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

Caso

Objetivo
Prove that sorbet-runtime does not clear a previously computed signature cache entry when a typed method is redefined without a new `sig`. HOW
Paquetes
sorbet-runtime 0.6.13427
Entorno
ruby
Creado
2026-08-17T02:48:48Z

Lo que suele suponerse

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.

El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.

Contrato

Archivos

Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato

Seeder de origen

csx-seed

Recibos de verificación