File tree 2 files changed +13
-8
lines changed
compiler/src/dotty/tools/dotc
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ object Printers {
33
33
val interactiv = noPrinter
34
34
val matchTypes = noPrinter
35
35
val nullables = noPrinter
36
- val overload = default
36
+ val overload = noPrinter
37
37
val patmatch = noPrinter
38
38
val pickling = noPrinter
39
39
val quotePickling = noPrinter
Original file line number Diff line number Diff line change @@ -411,10 +411,18 @@ trait Applications extends Compatibility {
411
411
/** The function's type after widening and instantiating polytypes
412
412
* with TypeParamRefs in constraint set
413
413
*/
414
- @ threadUnsafe lazy val methType : Type = liftedFunType.widen match {
415
- case funType : MethodType => funType
416
- case funType : PolyType => instantiateWithTypeVars(funType)
417
- case tp => tp // was: funType
414
+ @ threadUnsafe lazy val methType : Type = {
415
+ def rec (t : Type ): Type = {
416
+ t.widen match {
417
+ case funType : MethodType => funType
418
+ case funType : PolyType =>
419
+ // rec(constrained(funType).resultType) //TODO: Could replace rec(etc) by etc.methType ?
420
+ rec(instantiateWithTypeVars(funType))
421
+ case tp => tp
422
+ }
423
+ }
424
+
425
+ rec(liftedFunType)
418
426
}
419
427
420
428
@ threadUnsafe lazy val liftedFunType : Type =
@@ -692,11 +700,8 @@ trait Applications extends Compatibility {
692
700
final def addArg (arg : TypedArg , formal : Type ): Unit = ok = ok & argOK(arg, formal)
693
701
def makeVarArg (n : Int , elemFormal : Type ): Unit = {}
694
702
def fail (msg : Message , arg : Arg ): Unit =
695
- // println(msg)
696
- // println(arg)
697
703
ok = false
698
704
def fail (msg : Message ): Unit =
699
- // println(msg)
700
705
ok = false
701
706
def appPos : SrcPos = NoSourcePosition
702
707
@ threadUnsafe lazy val normalizedFun : Tree = ref(methRef)
You can’t perform that action at this time.
0 commit comments