diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2020-12-15 10:52:27 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2020-12-15 10:52:27 +0100 |
| commit | 1e7108effea2883a1fd3b4cf79d9ab6e624d4599 (patch) | |
| tree | 3697a0def1daa735ac61d02918df16234d1dfb93 /src/server | |
| parent | 5fb1dc4465c95939c0fee23d945510c0d50e1ea0 (diff) | |
!= binary expr should also infer enum
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/analysis.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index fa342a9..90498f5 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2135,7 +2135,7 @@ get_completion_list :: proc(document: ^Document, position: common.Position) -> ( } //If the implicit is in the binary expression, then we have to infer from the lhs - if position_context.binary != nil && position_context.binary.op.text == "==" { + if position_context.binary != nil && (position_context.binary.op.text == "==" || position_context.binary.op.text == "!=") { if position_in_node(position_context.binary.right, position_context.position) { |