Allow dependent functions. This is currently necessary for unpickling, because some dependent functions are passed through from the front end(s?), even though they are technically speaking illegal.
Allow hk applications of type lambdas to wildcard arguments; used for checking that such applications do not normally arise
Allow GADTFlexType labelled types to have their bounds adjusted
We are currently in a
viewExists check. In that case, ambiguous
implicits checks are disabled and we succeed with the first implicit
We are currently typechecking an ident to determine whether some implicit is shadowed - don't do any other shadowing tests.
We are elaborating the fully qualified name of a package clause. In this case, identifiers should never be imported.
We are looking at the arguments of a supercall
We are in the IDE
We are currently unpickling from Java 8 or higher
Use Scala2 scheme for overloading and implicit resolution
Don't suppress exceptions thrown during show
We are currently printing something: avoid to produce more logs about the printing
Read original positions when unpickling from TASTY
We are currently unpickling Scala2 info
This mode bit is set if we collect information without reference to a valid context with typerstate and constraint. This is typically done when we cache the eligibility of implicits. Caching needs to be done across different constraints. Therefore, if TypevarsMissContext is set, subtyping becomes looser, and assumes that TypeParamRefs can be sub- and supertypes of anything. See TypeComparer.