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 441afc5 commit b8c9d5aCopy full SHA for b8c9d5a
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