File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ object CheckUnused:
568
568
569
569
// does the param have an alias in a default arg method that is used?
570
570
def usedByDefaultGetter (param : Symbol , meth : Symbol ): Boolean =
571
- val cls = if meth.isPrimaryConstructor then meth.enclosingClass.companionModule else meth.enclosingClass
571
+ val cls = if meth.isConstructor then meth.enclosingClass.companionModule else meth.enclosingClass
572
572
val MethName = meth.name
573
573
cls.info.decls.exists: d =>
574
574
d.name match
Original file line number Diff line number Diff line change @@ -24,3 +24,7 @@ class K(k: Int)(s: String = "*"*k):
24
24
25
25
class KU (using k : Int )(s : String = " *" * k):
26
26
override val toString = s
27
+
28
+ class KK (s : String ):
29
+ def this (k : Int )(s : String = " *" * k) = this (s)
30
+ override val toString = s
You can’t perform that action at this time.
0 commit comments