Report exposed type for properties in class primary constructor
Before this commit, we compared property visibility with constructor visibility only, which is incorrect. Now we compare property visibility also with class visibility #KT-19613 Fixed
This commit is contained in:
@@ -7315,6 +7315,26 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/privateFromLocal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privatePropertyInPrivateConstructor.kt")
|
||||
public void testPrivatePropertyInPrivateConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/privatePropertyInPrivateConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyInConstructorOfPrivateClass.kt")
|
||||
public void testPropertyInConstructorOfPrivateClass() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/propertyInConstructorOfPrivateClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyInPrivateConstructor.kt")
|
||||
public void testPropertyInPrivateConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/propertyInPrivateConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyInSimpleConstructor.kt")
|
||||
public void testPropertyInSimpleConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/propertyInSimpleConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("protected.kt")
|
||||
public void testProtected() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/exposed/protected.kt");
|
||||
|
||||
Reference in New Issue
Block a user