Skip to content

Commit 4124190

Browse files
committed
compile is#, isnot#
1 parent ffe9cc9 commit 4124190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/gocompiler.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ function s:GoCompiler.compile_isci(node)
769769
endfunction
770770

771771
function s:GoCompiler.compile_iscs(node)
772-
throw 'NotImplemented: is#'
772+
return self.compile_op2(a:node, '==')
773773
endfunction
774774

775775
function s:GoCompiler.compile_isnot(node)
@@ -781,7 +781,7 @@ function s:GoCompiler.compile_isnotci(node)
781781
endfunction
782782

783783
function s:GoCompiler.compile_isnotcs(node)
784-
throw 'NotImplemented: isnot#'
784+
return self.compile_op2(a:node, '!=')
785785
endfunction
786786

787787
function s:GoCompiler.compile_add(node)

0 commit comments

Comments
 (0)