File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5116,17 +5116,11 @@ object Types extends TypeUtils {
5116
5116
*/
5117
5117
private def currentEntry (using Context ): Type = ctx.typerState.constraint.entry(origin)
5118
5118
5119
- /** For uninstantiated type variables: the lower bound */
5120
- def lowerBound (using Context ): Type = currentEntry.loBound
5121
-
5122
- /** For uninstantiated type variables: the upper bound */
5123
- def upperBound (using Context ): Type = currentEntry.hiBound
5124
-
5125
5119
/** For uninstantiated type variables: Is the lower bound different from Nothing? */
5126
- def hasLowerBound (using Context ): Boolean = ! lowerBound .isExactlyNothing
5120
+ def hasLowerBound (using Context ): Boolean = ! currentEntry.loBound .isExactlyNothing
5127
5121
5128
5122
/** For uninstantiated type variables: Is the upper bound different from Any? */
5129
- def hasUpperBound (using Context ): Boolean = ! upperBound .isTopOfSomeKind
5123
+ def hasUpperBound (using Context ): Boolean = ! currentEntry.hiBound .isTopOfSomeKind
5130
5124
5131
5125
/** Unwrap to instance (if instantiated) or origin (if not), until result
5132
5126
* is no longer a TypeVar
You can’t perform that action at this time.
0 commit comments