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

{ emit[T] } is not equal to { emit[T] } #866

Open
jiribenes opened this issue Mar 7, 2025 · 0 comments
Open

{ emit[T] } is not equal to { emit[T] } #866

jiribenes opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working errormessage

Comments

@jiribenes
Copy link
Contributor

The following code causes an weird "{ emit[T] } is not equal to { emit[T] }" error:

def fix[T] { one: T => Unit / emit[T] } { stream: => Unit / emit[T] }: Unit = {
  try stream() with emit[T] { value =>
    fix {one} { one(value) }
    // ^ [error]: { emit[T] } is not equal to { emit[T] }
    resume(())
  }
}

Fixable by

fix[T] {one} { one(value) }
@jiribenes jiribenes added errormessage bug Something isn't working labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working errormessage
Projects
None yet
Development

No branches or pull requests

1 participant