Skip to content

Commit 79de26c

Browse files
committed
Handle reference of ConstantType in summarization
1 parent 99e42b5 commit 79de26c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/transform/init/Summarization.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ object Summarization {
203203
def analyze(tp: Type, source: Tree)(implicit env: Env): Summary =
204204
trace("summarizing " + tp.show, init, s => Summary.show(s.asInstanceOf[Summary])) {
205205
val summary: Summary = tp match {
206+
case _: ConstantType =>
207+
Summary.empty
208+
206209
case tmref: TermRef if tmref.prefix == NoPrefix =>
207210
Summary.empty
208211

File renamed without changes.

0 commit comments

Comments
 (0)