File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,10 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
109
109
case AppliedType (_, funArgs @ fun :: tupled :: Nil ) =>
110
110
def functionTypeEqual (baseFun : Type , actualArgs : List [Type ],
111
111
actualRet : Type , expected : Type ) =
112
- val efp = defn.erasedFunctionParameters(baseFun)
113
- assert(efp.size == 1 )
114
- val erasedParams = actualArgs.map(_ => efp(0 ))
115
112
expected =:= defn.FunctionOf (actualArgs, actualRet,
116
- defn.isContextFunctionType(baseFun), erasedParams )
113
+ defn.isContextFunctionType(baseFun), List () /* erased functions not supported */ )
117
114
val arity : Int =
118
- if defn.isErasedFunctionType(fun) || defn.isErasedFunctionType(fun) then - 1 // TODO support?
115
+ if defn.isErasedFunctionType(fun) then - 1 // TODO support?
119
116
else if defn.isFunctionType(fun) then
120
117
// TupledFunction[(...) => R, ?]
121
118
fun.dropDependentRefinement.dealias.argInfos match
You can’t perform that action at this time.
0 commit comments