FIR: allow fun T.() = ... as an instance of (T) -> ...

It was already done by the previous commit by mistake, but it broke if
there are other value parameters because the type of the first parameter
would be inferred to be same as the type of the receiver.
This commit is contained in:
pyos
2021-02-02 18:56:49 +01:00
committed by TeamCityServer
parent 0a25550fc2
commit 474d1d48f7
9 changed files with 37 additions and 16 deletions
@@ -27,6 +27,7 @@ enum class DiagnosticKind {
Java,
SuperNotAllowed,
ValueParameterWithNoTypeAnnotation,
CannotInferParameterType,
UnknownCallableKind,
IllegalProjectionUsage,
MissingStdlibClass,