FIR IDE: Add more tests for type conflicts
This commit is contained in:
+30
@@ -56,9 +56,39 @@ public class FirShortenRefsTestGenerated extends AbstractFirShortenRefsTest {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeGenericTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterTypeImportedTypeWins.kt")
|
||||
public void testParameterTypeImportedTypeWins() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeImportedTypeWins.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterTypeNestedType.kt")
|
||||
public void testParameterTypeNestedType() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeNestedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterTypeStarImportedTypeLoses.kt")
|
||||
public void testParameterTypeStarImportedTypeLoses() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeStarImportedTypeLoses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterTypeTopLevelTypeLoses.kt")
|
||||
public void testParameterTypeTopLevelTypeLoses() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeTopLevelTypeLoses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterTypeTopLevelTypeWins.kt")
|
||||
public void testParameterTypeTopLevelTypeWins() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/ParameterTypeTopLevelTypeWins.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariableType.kt")
|
||||
public void testVariableType() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/VariableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariableTypeConflictWithLocalType.kt")
|
||||
public void testVariableTypeConflictWithLocalType() throws Exception {
|
||||
runTest("idea/testData/shortenRefsFir/types/VariableTypeConflictWithLocalType.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
class T
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.T
|
||||
|
||||
class T
|
||||
|
||||
<selection>fun foo(t: dependency.T) {}</selection>
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.T
|
||||
|
||||
class T
|
||||
|
||||
fun foo(t: T) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
class T
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
class T
|
||||
|
||||
<selection>fun foo(t: dependency.T) {}</selection>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
class T
|
||||
|
||||
fun foo(t: dependency.T) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
class T
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.T
|
||||
|
||||
class T
|
||||
|
||||
<selection>fun foo(t: test.T) {}</selection>
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.T
|
||||
|
||||
class T
|
||||
|
||||
fun foo(t: test.T) {}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
class T
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
class T
|
||||
|
||||
<selection>fun foo(t: test.T) {}</selection>
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
class T
|
||||
|
||||
fun foo(t: T) {}
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
class T
|
||||
|
||||
fun foo() {
|
||||
<selection>var t: test.T</selection>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
class T
|
||||
|
||||
fun foo() {
|
||||
var t: T
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
class T
|
||||
|
||||
fun foo() {
|
||||
class T
|
||||
|
||||
<selection>var t: test.T</selection>
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// FIR_COMPARISON
|
||||
package test
|
||||
|
||||
class T
|
||||
|
||||
fun foo() {
|
||||
class T
|
||||
|
||||
var t: test.T
|
||||
}
|
||||
Reference in New Issue
Block a user