Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run example fro TCP client #91

Closed
arthur-s opened this issue Sep 4, 2021 · 1 comment
Closed

Can't run example fro TCP client #91

arthur-s opened this issue Sep 4, 2021 · 1 comment

Comments

@arthur-s
Copy link

arthur-s commented Sep 4, 2021

Hello, I tried to use this example to create a TCP client, but dub run command fails with:

 Error: function `hunt.io.TcpStream.TcpStream.received(DataHandleStatus delegate(ByteBuffer buffer) handler)` is not callable using argument types `(void delegate(ByteBuffer buffer) @system)`
source/app.d(37,13):        cannot pass argument `__lambda6` of type `void delegate(ByteBuffer buffer) @system` to parameter `DataHandleStatus delegate(ByteBuffer buffer)
 handler`
/home/active/dlang/ldc-1.27.1/bin/ldc2 failed with exit code 1.

Tried with both latest dmd and ldc.

@Heromyth
Copy link
Contributor

Heromyth commented Sep 5, 2021

Thanks. It's fixed in commit 0deb4fe.

@Heromyth Heromyth closed this as completed Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants