mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
The comment in the code is correct that EnclosingMethod attributes should only be generated for local and anonymous classes. We were generating them for member classes as well which leads to invalid class files. With this change I had to mute one more tests. That is because we lose the parent method and therefore we see a class as a member class instead of a local class. With the old descriptor based check that test still passes.
9 lines
103 B
Kotlin
Vendored
9 lines
103 B
Kotlin
Vendored
package test
|
|
|
|
interface Trait {
|
|
fun simple() {
|
|
}
|
|
|
|
fun generic(list: List<String>) {
|
|
}
|
|
} |