You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript explicit_casts: a generic type argument before a keyword (extends B<T> implements C) counts as a <T>value cast #9459
Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863).
Construct: a TypeScript generic type argument followed by a keyword. The explicit_casts angle-bracket branch <\s*[A-Z]\w*\s*>\s*[a-zA-Z_] (meant for the <Type>value cast) matches B<T> implements and Foo<Bar> extends.
Snippets and actual hits (expected 0 each):
class A extends B<T> implements C {} -> 1
type T = Foo<Bar> extends X ? 1 : 0; -> 1
The cast const n = <Node>obj; fires as it should; interface I extends Base<T> {} correctly reads 0.
Activity
tests/decoys: SOP-002 gap-cell decoy suites for python, typescript, j…