File tree 1 file changed +6
-2
lines changed
compiler/src/dotty/tools/dotc/transform/init
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ object Summarization {
206
206
val tp = tdef.symbol.info
207
207
val traverser = new TypeTraverser {
208
208
def traverse (tp : Type ): Unit = tp match {
209
- case tp : TermRef =>
209
+ case TermRef ( _ : SingletonType , _) =>
210
210
summary = summary + analyze(tp, tdef.rhs)
211
211
case _ =>
212
212
traverseChildren(tp)
@@ -219,6 +219,10 @@ object Summarization {
219
219
case _ : Import | _ : Export =>
220
220
Summary .empty
221
221
222
+ case _ : TermParamRef =>
223
+ // possible from type definitions
224
+ Summary .empty
225
+
222
226
case _ =>
223
227
throw new Exception (" unexpected tree: " + expr.show)
224
228
}
@@ -258,7 +262,7 @@ object Summarization {
258
262
Summary (pots2, effs)
259
263
260
264
case _ =>
261
- throw new Exception (" unexpected type: " + tp.show )
265
+ throw new Exception (" unexpected type: " + tp)
262
266
}
263
267
264
268
if (env.isAlwaysInitialized(tp)) Summary (Potentials .empty, summary.effs)
You can’t perform that action at this time.
0 commit comments