Skip to content

Commit e7f1644

Browse files
committed
Spec: Apply changes to wildcards.
1 parent af252f5 commit e7f1644

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/_spec/03-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ All parameterized class types are value types.
478478
In the concrete syntax of wildcard type arguments, if both bounds are omitted, the real bounds are inferred from the bounds of the corresponding type parameter in the target type constructor (which must be concrete).
479479
If only one bound is omitted, `Nothing` or `Any` is used, as usual.
480480

481+
Also in the concrete syntax, `_` can be used instead of `?` for compatibility reasons, with the same meaning.
482+
This alternative will be deprecated in the future, and is already deprecated under `-source:future`.
483+
481484
#### Simplification Rules
482485

483486
Wildcard type arguments used in covariant or contravariant positions can always be simplified to regular types.

0 commit comments

Comments
 (0)