[ASYNC-99] go block with <! inside protocol method invocation fails to compile (dispatch :protocol-invoke on '-item-to-ssa') Created: 23/Oct/14 Updated: 23/Oct/14
|Labels:||bug, go-macro, protocols|
java version "1.8.0_05"
I was programming a function involving a core.async go block, when I stumbled on a strange compilation error :
I experimented a little to try and strip down the problem, and found it was very generic. Say I have any protocol MyProtocol :
The following code will not compile, failing with the exception I showed you above :
However, the following 2 will compile without any problem :
It seems to me the '<! inside protocol method invocation form' is a situation which the go macro fails to handle.