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 5df985c commit 1846ad5Copy full SHA for 1846ad5
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -2275,11 +2275,13 @@ object Types {
2275
2276
protected def resultSignature(implicit ctx: Context) = try resultType match {
2277
case rtp: MethodicType => rtp.signature
2278
- case tp => Signature(tp, isJava = false)
+ case tp =>
2279
+ if (tp.isRef(defn.UnitClass)) Signature(Nil, defn.UnitClass.fullName.asTypeName)
2280
+ else Signature(tp, isJava = false)
2281
}
2282
catch {
2283
case ex: AssertionError =>
- println(i"failure while taking result signture of $this: $resultType")
2284
+ println(i"failure while taking result signature of $this: $resultType")
2285
throw ex
2286
2287
0 commit comments