KT-20421 fixing code generation for the case when "object" extends "class". It should look like: "object: class()".

This commit is contained in:
Alex Chmyr
2020-07-22 23:13:04 +01:00
committed by Ilya Kirillov
parent 26ca205f7e
commit a5368e443c
4 changed files with 21 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
class Base {
static final int F = 0;
}
final class A extends Base {
static final int F1 = 0;
}
+9
View File
@@ -0,0 +1,9 @@
internal open class Base {
companion object {
const val F = 0
}
}
internal object A : Base() {
const val F1 = 0
}