codesamplex

Sample

Prove that duplicate `method_added` hooks no longer cause repeated allocation for `checked(:never)` methods

sha256:59506b796799b67a91a6633533cfe8ddb3f956dc0a280b2ec1b65d6e51c6ad11

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prove that duplicate `method_added` hooks no longer cause repeated allocation for `checked(:never)` methods HOW
Packages
sorbet-runtime 0.6.13426
Environment
ruby
Created
2026-08-16T17:14:48Z

Commonly assumed

A `checked(:never)` method in a class with duplicate `method_added` hooks still incurs wrapper allocations on every call.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts