We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cefd3e commit aaffb11Copy full SHA for aaffb11
compiler/src/dotty/tools/dotc/transform/init/Summarization.scala
@@ -206,7 +206,7 @@ object Summarization {
206
val tp = tdef.symbol.info
207
val traverser = new TypeTraverser {
208
def traverse(tp: Type): Unit = tp match {
209
- case tp: TermRef =>
+ case TermRef(_: SingletonType, _) =>
210
summary = summary + analyze(tp, tdef.rhs)
211
case _ =>
212
traverseChildren(tp)
@@ -257,8 +257,12 @@ object Summarization {
257
}
258
Summary(pots2, effs)
259
260
+ case _: TermParamRef =>
261
+ // possible from type definitions
262
+ Summary.empty
263
+
264
- throw new Exception("unexpected type: " + tp.show)
265
+ throw new Exception("unexpected type: " + tp)
266
267
268
if (env.isAlwaysInitialized(tp)) Summary(Potentials.empty, summary.effs)
0 commit comments