Skip to content

Commit ebd7df5

Browse files
oderskyDarkDimius
authored andcommitted
Cleanups
Conflicts: src/dotty/tools/dotc/transform/Splitter.scala
1 parent c6af272 commit ebd7df5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ class Namer { typer: Typer =>
474474

475475
index(rest)(inClassContext(selfInfo))
476476
denot.info = ClassInfo(cls.owner.thisType, cls, parentRefs, decls, selfInfo)
477-
// make sure constr parameters are all entered because we refer to them in desugarings:
478477
}
479478
}
480479

src/dotty/tools/dotc/typer/TypeAssigner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ trait TypeAssigner {
109109
// it could be that we found an inaccessbile private member, but there is
110110
// an inherited non-private member with the same name and signature.
111111
val d2 = pre.nonPrivateMember(name)
112-
if (reallyExists(d2) && firstTry) test(pre.select(name, d2), false)
112+
if (reallyExists(d2) && firstTry)
113+
test(pre.select(name, d2), false)
113114
else {
114115
val alts = tpe.denot.alternatives.map(_.symbol).filter(_.exists)
115116
val what = alts match {

tests/pos/alias.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class A(val x: Int)
2+
3+
class B(x: Int) extends A(x)

0 commit comments

Comments
 (0)