You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix signature computation and caching involving type variables (#18092)
This fixes the logic taking the signature of a type uninstantiated type
variables (using tpnme.Uninstantiated) and non-permanently instantiated
type variables (which have a legitimate signature in the currenty
TyperState but cannot be cached).
The test case was minimized from
fmonniot/scala3mock#2.
assert(sig.isUnderDefined == expectedIsUnderDefined, i"Signature of `$meth` with prefix `$prefix` and type `${meth.info}` should be $what but is `$sig`")
76
+
77
+
checkSignatures(expectedIsUnderDefined =true)
78
+
assert(isFullyDefined(tvar, force =ForceDegree.all), s"Could not instantiate $tvar")
79
+
checkSignatures(expectedIsUnderDefined =false)
80
+
81
+
/** Check that signature caching behaves correctly with respect to retracted
0 commit comments