mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Copy: Report module accessibility conflicts
This commit is contained in:
11
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/after/A/A.iml
vendored
Normal file
11
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/after/A/A.iml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
internal class A {
|
||||
val a: A = A()
|
||||
val b: B = B()
|
||||
}
|
||||
|
||||
internal class B {
|
||||
val a: A = A()
|
||||
val b: B = B()
|
||||
}
|
||||
12
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/after/B/B.iml
vendored
Normal file
12
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/after/B/B.iml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="A" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,8 @@
|
||||
package bar
|
||||
|
||||
import foo.B
|
||||
|
||||
internal class A {
|
||||
val a: A = A()
|
||||
val b: B = B()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package bar
|
||||
11
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/before/A/A.iml
vendored
Normal file
11
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/before/A/A.iml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,11 @@
|
||||
package foo
|
||||
|
||||
internal class <caret>A {
|
||||
val a: A = A()
|
||||
val b: B = B()
|
||||
}
|
||||
|
||||
internal class B {
|
||||
val a: A = A()
|
||||
val b: B = B()
|
||||
}
|
||||
12
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/before/B/B.iml
vendored
Normal file
12
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/before/B/B.iml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="A" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1 @@
|
||||
package bar
|
||||
1
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/conflicts.txt
vendored
Normal file
1
idea/testData/refactoring/copyMultiModule/internalReferencesToAnotherModule2/conflicts.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Class A uses class B which will be inaccessible after move
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"mainFile": "A/src/foo/test.kt",
|
||||
"targetDirectory": "B/src/bar"
|
||||
}
|
||||
Reference in New Issue
Block a user