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

Traits dosen't work when used in non-main module #284

Closed
albertnetymk opened this issue Nov 21, 2015 · 2 comments
Closed

Traits dosen't work when used in non-main module #284

albertnetymk opened this issue Nov 21, 2015 · 2 comments

Comments

@albertnetymk
Copy link
Contributor

-- trait_import.enc
import trait_import_module
class Main {
  def main() : void {
    print 1;
  }
}

passive class Foo : Reagent {
}
-- trait_import_module.enc
trait Reagent {
  def react() : void {
    ();
  }
}

passive class Foo2 : Reagent {
}

encore -c fails with sth like:

error: use of undeclared identifier '_enc__method_Foo2_react';
@albertnetymk
Copy link
Contributor Author

#285 should fix this.

@EliasC
Copy link
Contributor

EliasC commented Nov 24, 2015

Fixed as of 2d928e8

@EliasC EliasC closed this as completed Nov 24, 2015
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