Minor, add check of const field modifiers to codegen test

#KT-29885
This commit is contained in:
Alexander Udalov
2020-03-13 23:26:12 +01:00
parent 1e3e791d43
commit 57fd449288
@@ -26,8 +26,14 @@ fun box(): String {
if (!Modifier.isStatic(A::class.java.getDeclaredField("x").modifiers))
return "Fail: A.x should be static"
if (!Modifier.isStatic(A::class.java.getDeclaredField("y").modifiers))
return "Fail: A.y should be static"
if (Modifier.isStatic(A::class.java.getDeclaredField("x$1").modifiers))
return "Fail: A.x$1 should not be static"
if (Modifier.isStatic(A::class.java.getDeclaredField("y$1").modifiers))
return "Fail: A.y$1 should not be static"
return "OK"
}