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 @@ -5117,17 +5117,11 @@ object Types extends TypeUtils {
5117
5117
*/
5118
5118
private def currentEntry (using Context ): Type = ctx.typerState.constraint.entry(origin)
5119
5119
5120
- /** For uninstantiated type variables: the lower bound */
5121
- def lowerBound (using Context ): Type = currentEntry.loBound
5122
-
5123
- /** For uninstantiated type variables: the upper bound */
5124
- def upperBound (using Context ): Type = currentEntry.hiBound
5125
-
5126
5120
/** For uninstantiated type variables: Is the lower bound different from Nothing? */
5127
- def hasLowerBound (using Context ): Boolean = ! lowerBound .isExactlyNothing
5121
+ def hasLowerBound (using Context ): Boolean = ! currentEntry.loBound .isExactlyNothing
5128
5122
5129
5123
/** For uninstantiated type variables: Is the upper bound different from Any? */
5130
- def hasUpperBound (using Context ): Boolean = ! upperBound .isTopOfSomeKind
5124
+ def hasUpperBound (using Context ): Boolean = ! currentEntry.hiBound .isTopOfSomeKind
5131
5125
5132
5126
/** Unwrap to instance (if instantiated) or origin (if not), until result
5133
5127
* is no longer a TypeVar
You can’t perform that action at this time.
0 commit comments