forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scala#16438: Ignore erroneous parent call in init check
- Loading branch information
1 parent
72c4ffd
commit 73a8a6e
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// scalac: -Ysafe-init | ||
trait ATrait(val string: String, val int: Int) | ||
trait AnotherTrait( override val string: String, override val int: Int) extends ATrait | ||
case class ACaseClass(override val string: String) extends AnotherTrait(string, 3) // error |