Skip to content

Commit

Permalink
Merge 7d1ff16 into 327ea86
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 authored Mar 29, 2024
2 parents 327ea86 + 7d1ff16 commit a66fd7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Thank you to all who have contributed!
- The current SqlBlock, SqlDialect, and SqlLayout are marked as deprecated and will be slightly changed in the next release.

### Fixed
- `StaticType.flatten()` on an `AnyOfType` with `AnyType` will return `AnyType`
- Updates the default `.sql()` method to use a more efficient (internal) printer implementation.


### Removed

### Security
Expand All @@ -47,6 +49,7 @@ Thank you to all who have contributed!
Thank you to all who have contributed!
- @<your-username>
- @rchowell
- @alancai98

## [0.14.4]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public data class AnyOfType(val types: Set<StaticType>, override val metas: Map<
types = this.types.flatMap {
when (it) {
is SingleType -> listOf(it)
is AnyType -> listOf(it)
is AnyType -> return@flatten it // if `AnyType`, return `AnyType`
is AnyOfType -> it.types
}
}.toSet()
Expand Down

0 comments on commit a66fd7e

Please sign in to comment.