Skip to content

Commit d8ce2a2

Browse files
Stephan SahmStephan Sahm
authored andcommitted
small changes
1 parent 06dca62 commit d8ce2a2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- flatten in general is now unified to use `convert` for interoperability between similar
2424
container types
2525
- flatten of ContextManager is again reverted back to not use `FlattenMe` anymore. Instead the
26-
inner result value is explicitly converted to `ContextManager`, following the general principal
26+
inner result value is explicitly converted to `ContextManager`, following the general principle
2727
now.
2828

2929
### Fixed

test/promote_type.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ using DataTypesBasic
2929
# Option
3030
# ======
3131

32-
@test promote_type(Identity{Int}, Nothing) == Union{Identity{Int}, Nothing}
33-
@test promote_type(Nothing, Identity{<:Number}) == Union{Identity{<:Number}, Nothing}
32+
@test promote_type(Identity{Int}, Const{Nothing}) == Union{Identity{Int}, Const{Nothing}}
33+
@test promote_type(Const{Nothing}, Identity{<:Number}) == Union{Identity{<:Number}, Const{Nothing}}
3434

3535
@test Dict(:a => Identity(1), :b => Const(nothing)) isa Dict{Symbol, Option{Int}}
3636

@@ -60,7 +60,7 @@ using DataTypesBasic
6060
# OptionEither
6161
# ============
6262

63-
@test promote_type(Identity{Number}, Const{Int}, Nothing) == Union{Nothing, Const{Int64}, Identity{Number}}
63+
@test promote_type(Identity{Number}, Const{Int}, Const{Nothing}) == Union{Const, Identity{Number}}
6464

6565
@test promote_type(Either{Number}, Const{Nothing}) == Either
6666
@test promote_type(Either{Number, AbstractString}, Const{Nothing}) == Either{<:Any, AbstractString}

0 commit comments

Comments
 (0)