Skip to content

Fix renamed class extension - #343

Merged
Perryvw merged 5 commits into
TypeScriptToLua:masterfrom
TheLartians:fix-renamed-class-extension
Jan 21, 2019
Merged

Fix renamed class extension#343
Perryvw merged 5 commits into
TypeScriptToLua:masterfrom
TheLartians:fix-renamed-class-extension

Conversation

@TheLartians

Copy link
Copy Markdown
Contributor

This fixes errors when extending from a renamed class.
The following example will now transpile and run correctly.

// base.ts
export class Type{ 
  constructor(){}
};
// main.ts
import { Type as TypeBase } from "./base";
class Type extends TypeBase{
  constructor(){ super(); }
};
const x = new Type();

@Perryvw

Perryvw commented Jan 19, 2019

Copy link
Copy Markdown
Member

Could you add a functional test for this situation?

@Perryvw
Perryvw merged commit 851205b into TypeScriptToLua:master Jan 21, 2019
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