Skip to content

Commit fcbe885

Browse files
Merge pull request #7211 from neshkeev/patch-1
Fix the list of erasure rules rendering
2 parents 9dffbc1 + d664092 commit fcbe885

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/docs/reference/new-types/union-types-spec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ exhaustive if all parts of the union are covered.
136136
The erased type for `A | B` is the _erased least upper bound_ of the erased
137137
types of `A` and `B`. Quoting from the documentation of `TypeErasure#erasedLub`,
138138
the erased lub is computed as follows:
139+
139140
- if both argument are arrays of objects, an array of the erased lub of the element types
140141
- if both arguments are arrays of same primitives, an array of this primitive
141142
- if one argument is array of primitives and the other is array of objects, Object

0 commit comments

Comments
 (0)