-
Notifications
You must be signed in to change notification settings - Fork 205
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
declare retroactive interface implementations in TypeScript #14892
Conversation
CHANGELOG_BEGIN - [TypeScript codegen] Support for retroactive interface implementations included. Choice inheritance is deprecated and `will be removed <https://github.com/digital-asset/daml/issues/14893>`__; to invoke an interface choice on a template-typed contract ID, convert it to an interface-typed ID with *TemplateName*``.toInterface``. CHANGELOG_END
@@ -639,69 +639,87 @@ describe("interface definition", () => { | |||
expect(c).not.toEqual(theChoice(if2[k])); | |||
expect(c.template()).toBe(tpl); | |||
}); | |||
|
|||
test("retroactive interfaces permit contract ID conversion", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason we're not testing exercises somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests further down test interface exercise; there is absolutely no difference for retros from the perspective of codegen.
Fixes #14082.