JVM_IR: "fix" reified type parameter scope check

where "fix" means "work around a bug that is much harder to fix". When
lambdas are extracted into the nearest class, captured type parameters
are not transformed into type parameters of the new method; because of
this, to check whether a reified type parameter is captured by a method
we need to check the outermost named function, not the current function.
This commit is contained in:
pyos
2019-09-20 10:58:55 +02:00
committed by max-kammerer
parent c70b2e3e4b
commit 301e3d27fd
4 changed files with 28 additions and 10 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME