Skip to content

Commit aaffb11

Browse files
committed
Handle types that appear in effpi
We get types like the following in effpi: effpi.examples.demo.audit.types.Pay#replyTo
1 parent 2cefd3e commit aaffb11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/transform/init/Summarization.scala

+6-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ object Summarization {
206206
val tp = tdef.symbol.info
207207
val traverser = new TypeTraverser {
208208
def traverse(tp: Type): Unit = tp match {
209-
case tp: TermRef =>
209+
case TermRef(_: SingletonType, _) =>
210210
summary = summary + analyze(tp, tdef.rhs)
211211
case _ =>
212212
traverseChildren(tp)
@@ -257,8 +257,12 @@ object Summarization {
257257
}
258258
Summary(pots2, effs)
259259

260+
case _: TermParamRef =>
261+
// possible from type definitions
262+
Summary.empty
263+
260264
case _ =>
261-
throw new Exception("unexpected type: " + tp.show)
265+
throw new Exception("unexpected type: " + tp)
262266
}
263267

264268
if (env.isAlwaysInitialized(tp)) Summary(Potentials.empty, summary.effs)

0 commit comments

Comments
 (0)