We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e4fe7 commit 391730aCopy full SHA for 391730a
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2512,7 +2512,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
2512
// allow missing type parameters if there are implicit arguments to pass
2513
// since we can infer type arguments from them
2514
val constr = psym.primaryConstructor
2515
- if constr.exists then
+ if psym.is(Trait) && constr.exists && !cls.isRefinementClass then
2516
ensureAccessible(constr.termRef, superAccess = true, tree.srcPos)
2517
else
2518
checkParentCall(result, cls)
0 commit comments