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 ebb3b9a commit b305597Copy full SHA for b305597
compiler/src/dotty/tools/dotc/core/TypeErrors.scala
@@ -18,7 +18,7 @@ import config.Printers.cyclicErrors
18
class TypeError(msg: String) extends Exception(msg) {
19
def this() = this("")
20
def toMessage(implicit ctx: Context): Message = super.getMessage
21
- override def getMessage: String = throw new Exception("Use toMessage instead for TypeError")
+ override def getMessage: String = super.getMessage
22
}
23
24
class MalformedType(pre: Type, denot: Denotation, absMembers: Set[Name]) extends TypeError {
0 commit comments