Files
scriptc/tests
Malte UblandClaude Opus 5.5 74f2c9754b Dispatch String-only method names on untyped receivers by runtime kind
A call of a String.prototype-only method name (trim, toLowerCase,
startsWith, ...) on a checker-untyped receiver was lowered as a string
call that throws unless the receiver is a string. A checked-dynamic
object can carry its own member of that name: zod's schemas assign
`trim` in their constructors, so `z.string().trim().min(1)` typed the
`trim()` result as a string and refused `.min` with SC1090. Untyped
receivers now take the runtime-kind dispatch that object-typed receivers
missing the member already use: a string runs the string lowering, any
other value calls its own member as Node does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:15:44 -07:00
..
…
2026-10-20 17:56:44 -05:00