-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Better .NET type conversion encapsulation
Dafny has optional parameters. Smithy-Dafny uses this feature to produce Dafny types that default to `:= None`. However, the translated Dafny does *not* support optional parameters. This means that these optional parameters, are _not_ interoperable in target runtimes. .NET already deferred type conversions of wrapped resources to the target module. But it assumed that Dafny was overly interoperable. This change to .NET defers all type conversion to the module that owns the type. This brings .NET more in line with other runtimes. This change is not completely backwards compatible. There are a few edge cases with orphaned types as well as already published versions.
- Loading branch information
1 parent
5fb3f25
commit 34f5452
Showing
2 changed files
with
41 additions
and
2 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