Clarify Wildcard.hasUpperBound() doc

This commit is contained in:
Marcono1234
2020-08-02 15:02:51 +02:00
parent 205dd1aead
commit f477e09190

View File

@@ -194,7 +194,10 @@ class TypeVariable extends BoundedType, @typevariable {
* and the second wildcard has a lower bound of `Float`.
*/
class Wildcard extends BoundedType, @wildcard {
/** Holds if this wildcard has an upper bound. */
/**
* Holds if this wildcard is either unconstrained (i.e. `?`) or
* has an upper bound.
*/
predicate hasUpperBound() { wildcards(this, _, 1) }
/** Holds if this wildcard has a lower bound. */