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

Error in parametric class #344

Closed
kikofernandez opened this issue Mar 14, 2016 · 3 comments
Closed

Error in parametric class #344

kikofernandez opened this issue Mar 14, 2016 · 3 comments

Comments

@kikofernandez
Copy link
Contributor

Error at compilation time when a parametric class creates a new instance of another / same parametric class.

  • Branch: development and master
  • Error: parametricError_src/Active.encore.c:56:37: error: use of undeclared identifier 'this'; did you mean '_this'?
  • Example:
class Active<a>
  def init(x: a): void
    ()

  def duplicate(x: a): void
    (new Active<a>(x))

class Main
  def main(): void
    ()
@albertnetymk
Copy link
Contributor

I recalling seeing this while working on the migration; should be fixed on new-ponyrt.

@kikofernandez
Copy link
Contributor Author

ok thanks! let's leave it open and close as soon as we can check it in the new-ponyrt

@albertnetymk
Copy link
Contributor

Can't reproduce it on development, closing now. Reopen, if not so.

@TobiasWrigstad TobiasWrigstad removed the bug label Apr 7, 2016
supercooldave pushed a commit that referenced this issue Apr 8, 2016
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

3 participants