Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Revert redefined function diagnostic #1359

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

jakebailey
Copy link
Member

Closes #1346.
Closes #1358.

This is too risky for now; without dataflow analysis and handling of odd cases like in #1358 (comment) this is probably too much to be there by default. Manual revert of #1273 (auto-revert had conflicts).

@@ -25,8 +25,6 @@ public static class ErrorCodes {
public const string UndefinedVariable = "undefined-variable";
public const string VariableNotDefinedGlobally= "variable-not-defined-globally";
public const string VariableNotDefinedNonLocal = "variable-not-defined-nonlocal";
public const string FunctionRedefined = "function-redefined";
public const string UnsupportedOperandType = "unsupported-operand-type";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was in #1273 but was a merge error there; removing it now too.

@jakebailey jakebailey merged commit 16e59f4 into microsoft:master Jul 22, 2019
jakebailey added a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

function-redefined raised on conditionally-defined code False positive redefinition warning
2 participants