Skip to content

Commit

Permalink
Release v1.4.2 (#79)
Browse files Browse the repository at this point in the history
* Update readme
* Release v1.4.2
  • Loading branch information
domn1995 authored Nov 5, 2022
1 parent 4dd57e1 commit e428cad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ Console.WriteLine(output); // "12345".

## Implicit Conversion Support

Given a union type where all members contain only a single parameter
and all parameters are a different type, Dunet will generate implicit
conversions between their values and the union type.
Dunet generates implicit conversions between union member values and the union type
if your union meets all of the following conditions:

- All members contain only a single parameter.
- All parameters are a different type.
- No parameters are an interface type.

For example, consider a `Result` union type that represents success
as a `double` and failure as an `Exception`:
Expand Down
9 changes: 5 additions & 4 deletions src/Dunet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/domn1995/dunet</RepositoryUrl>
<PackageTags>source; generator; discriminated; union; functional; tagged;</PackageTags>
<AssemblyVersion>1.4.1</AssemblyVersion>
<FileVersion>1.4.1</FileVersion>
<AssemblyVersion>1.4.2</AssemblyVersion>
<FileVersion>1.4.2</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>1.4.1 - Disable CS1591 in generated code.
<PackageReleaseNotes>1.4.2 - Disables implicit conversions when union member is an interface type.
1.4.1 - Disable CS1591 in generated code.
1.4.0 - Support Action match functions.
1.3.0 - Async match methods.
1.2.0 - Support nested union declarations.
Expand All @@ -39,7 +40,7 @@
<RepositoryType>git</RepositoryType>
<PackageIcon>favicon.png</PackageIcon>
<SignAssembly>False</SignAssembly>
<Version>1.4.1</Version>
<Version>1.4.2</Version>
<NeutralLanguage>en</NeutralLanguage>
<DevelopmentDependency>true</DevelopmentDependency>
<NoWarn>$(NoWarn);NU5128</NoWarn>
Expand Down

0 comments on commit e428cad

Please sign in to comment.