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.
2 parents ed9267e + b8c9d5a commit 7208bd8Copy full SHA for 7208bd8
compiler/src/dotty/tools/dotc/reporting/messages.scala
@@ -589,9 +589,8 @@ import transform.SymUtils._
589
def explain =
590
em"""|An abstract declaration must have a return type. For example:
591
|
592
- |trait Shape {hl(
593
- | def area: Double // abstract declaration returning a ${"Double"}
594
- |)}"""
+ |trait Shape:
+ | ${hl("def area: Double")} // abstract declaration returning a Double"""
595
}
596
597
class MissingReturnTypeWithReturnStatement(method: Symbol)(using Context)
0 commit comments