diff options
author | Martin Odersky <odersky@gmail.com> | 2016-05-27 23:25:26 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-11 13:34:59 +0200 |
commit | 178e90e441481364f19163a9dad624a4d859fb1b (patch) | |
tree | e459e09d425031af841db994941f51f0334e3adf /src/dotty/tools/dotc/core/Types.scala | |
parent | 08a0ea65b911726b327a9caf36e0e48acb5c5e93 (diff) | |
download | dotty-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