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

relative effects in result type are not yet substituted #16

Open
lrytz opened this issue May 28, 2013 · 0 comments
Open

relative effects in result type are not yet substituted #16

lrytz opened this issue May 28, 2013 · 0 comments

Comments

@lrytz
Copy link
Owner

lrytz commented May 28, 2013

  def foo(f: Int => Int) = new {
    def bar(x: Int): Int @pure(f.apply(%)) = f(x)
  }

  // not yet supported.. has top effect
  def t2: Any @pure = foo(x => x).bar(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant