aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-19 19:46:47 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-30 09:51:02 +0200
commitb49034715ac5dc5d3f8427b39e497d3e20c4c192 (patch)
treee0bfb21b474dc2b37e7a3d43b39ab8df0c1a32bc /src/dotty/tools/dotc/core/Types.scala
parent0855b071d913e7acd5271ab34062c69e25cd93cd (diff)
downloaddotty-b49034715ac5dc5d3f8427b39e497d3e20c4c192.tar.gz
dotty-b49034715ac5dc5d3f8427b39e497d3e20c4c192.tar.bz2
dotty-b49034715ac5dc5d3f8427b39e497d3e20c4c192.zip
Simplify and fix avoid logic
The previous formulation broke for named parameters. Test case in flowops1.scala.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 3801f1914..ffb662490 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -841,14 +841,6 @@ object Types {
case _ => this
}
- /** If this is a refinement type, the unrefined parent,
- * else the type itself.
- */
- final def unrefine(implicit ctx: Context): Type = stripTypeVar match {
- case tp @ RefinedType(tycon, _) => tycon.unrefine
- case _ => this
- }
-
/** If this is a (possibly aliased, annotated, and/or parameterized) reference to
* a class, the class type ref, otherwise NoType.
* @param refinementOK If `true` we also skip non-parameter refinements.