KT-2279 Setter generated for abstract var is not abstract
#KT-2279 fixed
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
abstract class ClassValAbstract {
|
||||
abstract val a: Int
|
||||
abstract var a: Int
|
||||
|
||||
class object {
|
||||
val methods = (this as java.lang.Object).getClass()?.getClassLoader()?.loadClass("ClassValAbstract")?.getMethods()
|
||||
@@ -8,11 +8,11 @@ abstract class ClassValAbstract {
|
||||
|
||||
fun box() : String {
|
||||
for(m in ClassValAbstract.methods) {
|
||||
if(m.sure().getName() == "getA") {
|
||||
if (m.sure().getName() == "getA") {
|
||||
if(m.sure().getModifiers() != 1025)
|
||||
return "get failed"
|
||||
}
|
||||
if(m.sure().getName() == "setA") {
|
||||
if (m.sure().getName() == "setA") {
|
||||
if(m.sure().getModifiers() != 1025)
|
||||
return "set failed"
|
||||
}
|
||||
Reference in New Issue
Block a user