We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30daf2c commit 14dfa14Copy full SHA for 14dfa14
compiler/src/dotty/tools/dotc/quoted/QuoteContextImpl.scala
@@ -2052,7 +2052,9 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
2052
object TypeBounds extends TypeBoundsModule:
2053
def apply(low: Type, hi: Type): TypeBounds = Types.TypeBounds(low, hi)
2054
def unapply(x: TypeBounds): Option[(Type, Type)] = Some((x.low, x.hi))
2055
- def minmax = TypeBounds(defn.NothingClass.tree.tpe, defn.AnyClass.tree.tpe)
+ def empty: TypeBounds = Types .TypeBounds.empty
2056
+ def upper(hi: Type): TypeBounds = Types .TypeBounds.upper(hi)
2057
+ def lower(lo: Type): TypeBounds = Types .TypeBounds.lower(hi)
2058
end TypeBounds
2059
2060
object TypeBoundsMethodsImpl extends TypeBoundsMethods:
0 commit comments