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

Fix trait parents handling #165

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

NeilKleistGao
Copy link
Member

Ignore traits in inheritance clauses correctly and fix translateParents:

:js
trait A
class B() extends A
//│ trait A
//│ class B()
//│ // Prelude
//│ class TypingUnit15 {
//│   #B;
//│   constructor() {
//│   }
//│   get B() {
//│     const outer = this;
//│     if (this.#B === undefined) {
//│       class B extends Object {
//│         constructor() {
//│           super();
//│         }
//│       };
//│       this.#B = (() => Object.freeze(new B()));
//│       this.#B.class = B;
//│     }
//│     return this.#B;
//│   }
//│ }
//│ const typing_unit15 = new TypingUnit15;
//│ globalThis.A = typing_unit15.A;
//│ globalThis.B = typing_unit15.B;
//│ // End of generated code

@LPTK LPTK merged commit 410300b into hkust-taco:new-definition-typing Jun 1, 2023
@LPTK LPTK deleted the build branch June 1, 2023 03:28
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

Successfully merging this pull request may close these issues.

2 participants