summaryrefslogtreecommitdiff
path: root/test/files/neg/t8869.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-8869 Prevent ill-kindedness in type lambdasJason Zaugg2014-10-011-0/+7
When type checking an type application, the arguments are allowed to be of kinds other than *. This leniency is controlled by the `ContextMode` bit `TypeConstructorAllowed`. (More fine grained checking of matching arity a bounds of type constructors is deferred until the refchecks phase to avoid cycles during typechecking.) However, this bit is propagated to child contexts, which means that we fail to report this error in the lexical context marked here: T[({type x = Option}#x)] `-------------' This commit resets this bit to false in any child context relates to a different tree from its parent.