Changes to how we compute type parameters
Changes to how we compute type parameters

Aim: Avoid expensive scanning of definitions in denotations other than the initial one.

Technique:

1. If phase is erased, type params is Nil (except for Array class)
2. Otherwise, type params is the same as it was in initial phase.

dotty-staging/dotty,spetz911/dotty,som-snytt/dotty,auvik/dotty,som-snytt/dotty,sjrd/dotty,svalaskevicius/dotty,folone/dotty,dotty-staging/dotty,yusuke2255/dotty,sjrd/dotty,vsalvis/dotty,folone/dotty,sjrd/dotty,reactormonk/dotty,sjrd/dotty,dotty-staging/dotty,lampepfl/dotty,som-snytt/dotty,som-snytt/dotty,sjrd/dotty,densh/dotty,lampepfl/dotty,angi2/dotty,lampepfl/dotty,lampepfl/dotty,VladimirNik/dotty,lampepfl/dotty,dotty-staging/dotty,vsalvis/dotty,auvik/dotty,svalaskevicius/dotty,reactormonk/dotty,AlexSikia/dotty,AlexSikia/dotty,VladimirNik/dotty,angi2/dotty,som-snytt/dotty,densh/dotty,dotty-staging/dotty,spetz911/dotty,yusuke2255/dotty