Codegen: fix NPE in NO_ANNOTATION_VISITOR

EA-100245 fixed
This commit is contained in:
Pavel V. Talanov
2017-04-14 21:52:59 +03:00
parent 8eb7117bf1
commit ec4da854b8
4 changed files with 54 additions and 1 deletions
@@ -0,0 +1,7 @@
public final class Inheritor implements p.I, p.I2 {
public final void f() { /* compiled code */ }
public void g() { /* compiled code */ }
public Inheritor() { /* compiled code */ }
}
@@ -0,0 +1,30 @@
// p.Inheritor
package p
annotation class Anno(vararg val s: String)
annotation class Bueno(val anno: Anno)
class Inheritor: I, I2 {
fun f() {
}
override fun g() {
}
}
interface I : I1 {
fun g()
}
interface I1 {
@Bueno(Anno("G"))
fun foo() = "foo"
}
interface I2 {
@Anno("S")
fun bar() = "bar"
}