diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-11-14 23:05:51 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:08 +0100 |
commit | 574a53f9913ca48c28ea2ea34ab153537ab329de (patch) | |
tree | 85755afa667fbe9ec01fae720c337c74cce0a6dc /compiler/src/dotty/tools/dotc/ast | |
parent | 6acdc1e85f04cc3a240ddb91983588897786d8ca (diff) | |
download | dotty-574a53f9913ca48c28ea2ea34ab153537ab329de.tar.gz dotty-574a53f9913ca48c28ea2ea34ab153537ab329de.tar.bz2 dotty-574a53f9913ca48c28ea2ea34ab153537ab329de.zip |
Fix flags for default getters of constructors
This manifested itself as a pickling difference in tasty_tools
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast')
-rw-r--r-- | compiler/src/dotty/tools/dotc/ast/Desugar.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/Desugar.scala b/compiler/src/dotty/tools/dotc/ast/Desugar.scala index 366a0e225..4b2ff1bc3 100644 --- a/compiler/src/dotty/tools/dotc/ast/Desugar.scala +++ b/compiler/src/dotty/tools/dotc/ast/Desugar.scala @@ -179,7 +179,7 @@ object desugar { DefDef( name = meth.name.defaultGetterName(n), tparams = meth.tparams.map(tparam => dropContextBound(toDefParam(tparam))), - vparamss = takeUpTo(normalizedVparamss, n), + vparamss = takeUpTo(normalizedVparamss.nestedMap(toDefParam), n), tpt = TypeTree(), rhs = vparam.rhs ).withMods(Modifiers(mods.flags & AccessFlags, mods.privateWithin)) |