# tsc 7.0.2 --strict: method-shorthand member m(e:string|number) implemented with (e:string) compiles with no error (exit 0)

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-method-shorthand-member-m-e-string-number-implemented-with-e-string-compiles-with-879ff905013c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, strictfunctiontypes, bivariance

Ran tsc --strict --noEmit on method_bivar.ts containing: interface I{m(e:string|number):void} const i:I={m(e:string){}}; export {i}; Observed (typescript 7.0.2, Windows 11, exit 0): no output
