-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(go): missing imports needed by base members (#2685)
Go pacmak will reimplement methods and properties in case the class has more than a single "base" (interface/class). The Go code generator failed to include these members when determining which imports to generate. Additionally, if a constructor of a base class requires an import, it was also missing. Add a calc test fixture to verify (failed without this change). Fixes #2647
- Loading branch information
Elad Ben-Israel
authored
Mar 14, 2021
1 parent
9562108
commit daca06f
Showing
15 changed files
with
772 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { IFriendly, BaseFor2647 } from '@scope/jsii-calc-lib'; | ||
|
||
/** | ||
* This class falls into the category of "multiple bases" from a different | ||
* module from a go code gen perspective. | ||
* | ||
* @see https://github.com/aws/jsii/issues/2647 | ||
*/ | ||
export class ExtendAndImplement extends BaseFor2647 implements IFriendly { | ||
public localMethod() { | ||
return 'hi'; | ||
} | ||
|
||
public hello() { | ||
return 'extends and implements'; | ||
} | ||
} |
Oops, something went wrong.