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 {
325
325
case _ =>
326
326
Nil
327
327
328
+ ensureCompleted()
328
329
if rawParamss.isEmpty then recurWithoutParamss(info)
329
330
else recurWithParamss(info, rawParamss)
330
331
end paramSymss
@@ -339,6 +340,7 @@ object SymDenotations {
339
340
case (fst :: Nil ) :: _ => fst
340
341
case _ => NoSymbol
341
342
assert(isAllOf(ExtensionMethod ))
343
+ ensureCompleted()
342
344
leadParam(rawParamss)
343
345
344
346
/** 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)
7
7
def bam (y : String ): String = this .baz(x)(y)
8
8
def ban (foo : String ): String = x + foo
9
9
def bao (y : String ): String =
10
- val bam = " ABC "
10
+ val bam = name
11
11
x ++ y ++ bam
12
+ def name : String = " ABC"
12
13
13
14
def app (n : Int , suffix : String ): String =
14
15
if n == 0 then x ++ suffix
You can’t perform that action at this time.
0 commit comments