Skip to content

Commit 3b1321d

Browse files
committed
Spec: Apply changes to wildcards.
1 parent 4b79524 commit 3b1321d

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
@@ -476,6 +476,9 @@ All parameterized class types are value types.
476476
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).
477477
If only one bound is omitted, `Nothing` or `Any` is used, as usual.
478478

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

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

0 commit comments

Comments
 (0)