File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ object SymDenotations {
325325 case _ =>
326326 Nil
327327
328+ ensureCompleted()
328329 if rawParamss.isEmpty then recurWithoutParamss(info)
329330 else recurWithParamss(info, rawParamss)
330331 end paramSymss
@@ -339,6 +340,7 @@ object SymDenotations {
339340 case (fst :: Nil ) :: _ => fst
340341 case _ => NoSymbol
341342 assert(isAllOf(ExtensionMethod ))
343+ ensureCompleted()
342344 leadParam(rawParamss)
343345
344346 /** The denotation is completed: info is not a lazy type and attributes have defined values */
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ extension (x: String)
77 def bam (y : String ): String = this .baz(x)(y)
88 def ban (foo : String ): String = x + foo
99 def bao (y : String ): String =
10- val bam = " ABC "
10+ val bam = name
1111 x ++ y ++ bam
12+ def name : String = " ABC"
1213
1314 def app (n : Int , suffix : String ): String =
1415 if n == 0 then x ++ suffix
You can’t perform that action at this time.
0 commit comments