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 @@ -4985,17 +4985,11 @@ object Types extends TypeUtils {
4985
4985
*/
4986
4986
private def currentEntry (using Context ): Type = ctx.typerState.constraint.entry(origin)
4987
4987
4988
- /** For uninstantiated type variables: the lower bound */
4989
- def lowerBound (using Context ): Type = currentEntry.loBound
4990
-
4991
- /** For uninstantiated type variables: the upper bound */
4992
- def upperBound (using Context ): Type = currentEntry.hiBound
4993
-
4994
4988
/** For uninstantiated type variables: Is the lower bound different from Nothing? */
4995
- def hasLowerBound (using Context ): Boolean = ! lowerBound .isExactlyNothing
4989
+ def hasLowerBound (using Context ): Boolean = ! currentEntry.loBound .isExactlyNothing
4996
4990
4997
4991
/** For uninstantiated type variables: Is the upper bound different from Any? */
4998
- def hasUpperBound (using Context ): Boolean = ! upperBound .isTopOfSomeKind
4992
+ def hasUpperBound (using Context ): Boolean = ! currentEntry.hiBound .isTopOfSomeKind
4999
4993
5000
4994
/** Unwrap to instance (if instantiated) or origin (if not), until result
5001
4995
* is no longer a TypeVar
You can’t perform that action at this time.
0 commit comments