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
@@ -29,6 +29,6 @@ import p.*
fun <Y, Z> test(b: B<Y, Z>?) {
if (b is C<Y, Z>) {
b?.foo(null)
b?.<!AMBIGUITY!>foo<!>(null)
}
}
@@ -30,8 +30,8 @@ import p.*
fun test(b: B?, c: C) {
b?.foo(1, 1)
c.foo(1, 1)
c.<!AMBIGUITY!>foo<!>(1, 1)
if (b is C) {
b?.foo(1, 1)
b?.<!AMBIGUITY!>foo<!>(1, 1)
}
}
@@ -38,6 +38,6 @@ import p.*
fun test(b: B?) {
if (b is C) {
b?.foo(null, null)
b?.<!AMBIGUITY!>foo<!>(null, null)
}
}