Skip to content

Commit 1a85be7

Browse files
authored
Merge pull request #529 from dart-lang/upper_bounds
Add missing parens in upper bounds
2 parents d30e0df + 591ca95 commit 1a85be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/type-system/upper-lower-bounds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ We define the upper bound of two types T1 and T2 to be **UP**(`T1`,`T2`) as foll
171171
- **UP**(`Function`, `T Function<...>(...)`) = `Function`
172172

173173
- **UP**(`T0 Function<X0 extends B00, ... Xm extends B0m>(P00, ... P0k)`,
174-
`T1 Function<X0 extends B10, ... Xm extends B1m>(P10, ... P1l)` =
174+
`T1 Function<X0 extends B10, ... Xm extends B1m>(P10, ... P1l)`) =
175175
`R0 Function<X0 extends B20, ..., Xm extends B2m>(P20, ..., P2q)` if:
176176
- each `B0i` and `B1i` are equal types (syntactically)
177177
- Both have the same number of required positional parameters
@@ -180,7 +180,7 @@ We define the upper bound of two types T1 and T2 to be **UP**(`T1`,`T2`) as foll
180180
- `B2i` is `B0i`
181181
- `P2i` is **DOWN**(`P0i`, `P1i`)
182182
- **UP**(`T0 Function<X0 extends B00, ... Xm extends B0m>(P00, ... P0k, Named0)`,
183-
`T1 Function<X0 extends B10, ... Xm extends B1m>(P10, ... P1k, Named1)` =
183+
`T1 Function<X0 extends B10, ... Xm extends B1m>(P10, ... P1k, Named1)`) =
184184
`R0 Function<X0 extends B20, ..., Xm extends B2m>(P20, ..., P2k, Named2)` if:
185185
- each `B0i` and `B1i` are equal types (syntactically)
186186
- All positional parameters are required

0 commit comments

Comments
 (0)