Quickfix for functions missing return statement #13589
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Suggestion
An idea for TypeScript
TypeScript Version: 2.0.3
Code
I have this piece of code where I see the error of missing return type. Correct behaviour
I use NetBeans with the NBTS Plugin: https://github.com/Everlaw/nbts.
I created a ticket there: Everlaw/nbts#85 which I want to have fixes for warnings/errors. I have a method with Object as a return type. The method body is empty. It throws an error that I need a return type.
Expected behavior:
I want to have fixes for the error that I can add the return type or change the method return type to void as you can see it here, which is working for Java:
Actual behavior:
I only see the error:
Regards
Chris
The text was updated successfully, but these errors were encountered: