Skip to content

Commit 11e5955

Browse files
sjrdKordyjan
authored andcommitted
Spec: Adapt basic declarations to the new type system.
[Cherry-picked 9ec07a2]
1 parent 27ab06e commit 11e5955

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/_spec/03-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ A _type lambda_ of the form `[´\pm a_1 >: L_1 <: H_1´, ..., ´\pm a_n >: L_n <
370370
When applied to ´n´ type arguments that conform to the specified bounds, it produces another type ´U´.
371371
Type lambdas are always concrete types.
372372

373+
The scope of a type parameter extends over the result type ´U´ as well as the bounds of the type parameters themselves.
374+
373375
All type constructors conform to some type lambda.
374376

375377
The type bounds of the parameters of a type lambda are in contravariant position, while its result type is in covariant position.

0 commit comments

Comments
 (0)