We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf8716 commit 0823a8fCopy full SHA for 0823a8f
tests/pos/i11214.scala
@@ -1,5 +1,5 @@
1
trait Pet(val name: String)
2
trait FeatheredPet extends Pet
3
4
-class Bird(name: String) extends FeatheredPet:
+class Bird(override val name: String) extends FeatheredPet:
5
override def toString = s"bird name: $name"
0 commit comments