diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index ff0f2e990..49ad67c49 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -376,6 +376,8 @@ object Types { l.findMember(name, pre, excluded) & (r.findMember(name, pre, excluded), pre) case OrType(l, r) => l.findMember(name, pre, excluded) | (r.findMember(name, pre, excluded), pre) + case ErrorType => + ctx.newErrorSymbol(pre.classSymbol orElse defn.RootClass, name) case NoType => NoDenotation } /* !!! DEBUG ensuring { denot => |