Filter out invisible fakes in KClass.properties
A user will rarely need those at the moment, and there's currently no other way to let him filter out them by himself
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
open class A(private val p: Int)
|
||||
class B : A(42)
|
||||
|
||||
fun box() =
|
||||
if (B::class.properties.isEmpty()) "OK"
|
||||
else "Fail: invisible fake overrides should not appear in KClass.properties"
|
||||
+6
@@ -2890,6 +2890,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("privateFakeOverrideFromSuperclass.kt")
|
||||
public void testPrivateFakeOverrideFromSuperclass() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/properties/privateFakeOverrideFromSuperclass.kt");
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleGetProperties.kt")
|
||||
public void testSimpleGetProperties() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/properties/simpleGetProperties.kt");
|
||||
|
||||
Reference in New Issue
Block a user