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:
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
Vendored
+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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user