From fe714ed2b6aaca41f1e6681b217022b301f3049d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 23 Jul 2015 17:42:55 +0200 Subject: Change some occurrences of <:< to frozen_<:< Some subtype tests should not instantiate type variables, in particular those having to do with & and |. --- src/dotty/tools/dotc/core/Denotations.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/core/Denotations.scala') diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index fff447803..b223a8086 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -339,8 +339,8 @@ object Denotations { val info1 = denot1.info val info2 = denot2.info val sameSym = sym1 eq sym2 - if (sameSym && info1 <:< info2) denot2 - else if (sameSym && info2 <:< info1) denot1 + if (sameSym && (info1 frozen_<:< info2)) denot2 + else if (sameSym && (info2 frozen_<:< info1)) denot1 else { val jointSym = if (sameSym) sym1 -- cgit v1.2.3