diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-28 20:34:53 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-28 20:34:53 +0100 |
commit | 7021570065a8932462a62265dd29a9ff01c9051a (patch) | |
tree | e4f4862b1bc09a6722aa01e2227c99fb0d27f1f3 /src/dotty/tools/dotc | |
parent | 0a94d6e694703be747b5e3c72c5d903ecd6b3997 (diff) | |
download | dotty-7021570065a8932462a62265dd29a9ff01c9051a.tar.gz dotty-7021570065a8932462a62265dd29a9ff01c9051a.tar.bz2 dotty-7021570065a8932462a62265dd29a9ff01c9051a.zip |
Guard against absent symbols in synthesizeCompanionMethod.
Diffstat (limited to 'src/dotty/tools/dotc')
-rw-r--r-- | src/dotty/tools/dotc/core/Symbols.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala index ed59a054d..5a856dd06 100644 --- a/src/dotty/tools/dotc/core/Symbols.scala +++ b/src/dotty/tools/dotc/core/Symbols.scala @@ -162,7 +162,7 @@ trait Symbols { this: Context => privateWithin, coord, assocFile) def synthesizeCompanionMethod(name: TermName, ret: SymDenotation, owner: SymDenotation)(implicit ctx: Context) = { - if(owner.exists && ret.exists) ctx.newSymbol( + if(owner.exists && ret.exists && !owner.isAbsent && !ret.isAbsent) ctx.newSymbol( owner = owner.symbol, name = name, flags = Flags.Synthetic | Flags.Private, |