summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-08-25 09:13:44 -0700
committerPaul Phillips <paulp@improving.org>2013-08-25 09:57:28 -0700
commit4412a92d3609d23f7369fc67bf5a67ddedf3511e (patch)
treef90b215c02df3a193940a00c94cfd8947122f637 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent9e81f0016bc3510482540379dc4e05140b513cee (diff)
downloadscala-4412a92d3609d23f7369fc67bf5a67ddedf3511e.tar.gz
scala-4412a92d3609d23f7369fc67bf5a67ddedf3511e.tar.bz2
scala-4412a92d3609d23f7369fc67bf5a67ddedf3511e.zip
Value class Depth.
It's the obvious translation from a raw Int into a value class. It wasn't that long ago one could find a signature like this: def merge(tps: List[Type], variance: Int, depth: Int): Type Do you feel lucky, method caller? Well, do ya? Anyway, now it is: def merge(tps: List[Type], variance: Variance, depth: Depth): Type Forget for a moment the fact that you'd probably rather not pass variance for depth and depth for variance and look at the type signatures: (List[Type], Variance, Depth) => Type (List[Type], Int, Int) => Type
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
0 files changed, 0 insertions, 0 deletions