No error when interface declares a function and property with same name and return type #16214
Labels
Bug
A bug in TypeScript
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
TypeScript Version: 2.3.4 (same in 2.4.0-dev.20170601)
Code
Expected behavior:
error TS2300: Duplicate identifier 'foo'.
Actual behavior:
No error.
I bisected using the NPM nightly builds (I ran into build problems trying to bisect from source), and this broke between 1.9.0-dev.20160524-1.0 and 1.9.0-dev.20160525-1.0. I suspect #8696.
The text was updated successfully, but these errors were encountered: