diff options
author | Martin Odersky <odersky@gmail.com> | 2013-04-09 15:19:49 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-04-09 15:19:49 +0200 |
commit | 7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3 (patch) | |
tree | 5ca8c806a1414010a2aa8c62c319528386ea653c /src/dotty/tools/dotc/core/Substituters.scala | |
parent | 442c361aee87266fe6428f1d9a5da7de934c8cef (diff) | |
download | dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.tar.gz dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.tar.bz2 dotty-7a6bb3ccba3217bc15e3a1c038a1cce4dbd942e3.zip |
Renamed creation methods of NamedTypes
Methods taking a fixed symbol are now called …withSym, methods taking a signature … withSig.
The reason for the change is that we want to liberate the original method names to take optional denotations, thus avoiding to have to go through withDenot each time.
Diffstat (limited to 'src/dotty/tools/dotc/core/Substituters.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Substituters.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Substituters.scala b/src/dotty/tools/dotc/core/Substituters.scala index 5d0dd6add..c0f0ad5db 100644 --- a/src/dotty/tools/dotc/core/Substituters.scala +++ b/src/dotty/tools/dotc/core/Substituters.scala @@ -88,7 +88,7 @@ trait Substituters { this: Context => var fs = from var ts = to while (fs.nonEmpty) { - if (fs.head eq sym) return NamedType(tp.prefix, ts.head) + if (fs.head eq sym) return NamedType.withSym(tp.prefix, ts.head) fs = fs.tail ts = ts.tail } |