Use different transformers per module in FIR diagnostics tests

Before this commit, we used same transformers for all modules,
which provoked using same ScopeSession for all modules.
Now we re-create transformers for any new module.
This fixes some problems with incorrect caching in ScopeSession.

NB: this provokes ambiguities in some old FE tests,
mostly they're correct (same as old FE).
This commit is contained in:
Mikhail Glukhikh
2019-12-19 16:24:45 +03:00
parent c4e6f8a640
commit fe8d68ecc7
7 changed files with 32 additions and 26 deletions
@@ -38,6 +38,6 @@ import p.*
fun test(b: B?) {
if (b is C) {
b?.foo(null, null)
b?.<!AMBIGUITY!>foo<!>(null, null)
}
}