aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-05-27 23:25:26 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:34:59 +0200
commit178e90e441481364f19163a9dad624a4d859fb1b (patch)
treee459e09d425031af841db994941f51f0334e3adf /src/dotty/tools/dotc/core/Types.scala
parent08a0ea65b911726b327a9caf36e0e48acb5c5e93 (diff)
downloaddotty-178e90e441481364f19163a9dad624a4d859fb1b.tar.gz
dotty-178e90e441481364f19163a9dad624a4d859fb1b.tar.bz2
dotty-178e90e441481364f19163a9dad624a4d859fb1b.zip
Remove special case in parser
There was a special case that triggered a parse error in this course def lift[T <: Type](tp: T): (RecType => T) = arg match { case rt0: RecType => tp.subst(rt0, _).asInstanceOf[T] case _ => (x => tp) } The problem was that the rhs of the first case became a Function node, which caused a premature return from the case clause sequence. I could not determine anymore what the purpose of the removed case in the parser was; all tests compile without it.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
0 files changed, 0 insertions, 0 deletions