diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Signature.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Signature.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Signature.scala b/src/dotty/tools/dotc/core/Signature.scala index 22d038d11..7bee51106 100644 --- a/src/dotty/tools/dotc/core/Signature.scala +++ b/src/dotty/tools/dotc/core/Signature.scala @@ -55,6 +55,8 @@ object Signature { val OverloadedSignature = Signature(List(tpnme.OVERLOADED), EmptyTypeName) /** The signature of a method with no parameters and result type `resultType`. */ - def apply(resultType: Type, isJava: Boolean)(implicit ctx: Context): Signature = + def apply(resultType: Type, isJava: Boolean)(implicit ctx: Context): Signature = { + assert(!resultType.isInstanceOf[ExprType]) apply(Nil, sigName(resultType, isJava)) + } }
\ No newline at end of file |