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

Actor Constructor: Arguments must be iso, val or tag #27

Closed
sblessing opened this issue Sep 9, 2014 · 1 comment
Closed

Actor Constructor: Arguments must be iso, val or tag #27

sblessing opened this issue Sep 9, 2014 · 1 comment

Comments

@sblessing
Copy link
Contributor

The following code produces a compiler error where it should not. The error thrown is "Constructor arguments must be iso, val or tag".

actor Main
  new create(env: Env)
    Test(this)

actor Test
  var _main: Main

  new create(m: Main)
    _main = m
@sblessing sblessing added the bug label Sep 9, 2014
@sylvanc
Copy link
Contributor

sylvanc commented Sep 9, 2014

Type checker now lowers the capability of arguments to behaviours and actor constructors before checking subtyping.

@sylvanc sylvanc closed this as completed Sep 9, 2014
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