summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigration/t125
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/typeMigration/testData/refactoring/typeMigration/t125')
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t125/after/Test.items9
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t125/after/test.java7
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t125/before/test.java7
3 files changed, 23 insertions, 0 deletions
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/Test.items b/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/Test.items
new file mode 100644
index 000000000000..3859bad4e428
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/Test.items
@@ -0,0 +1,9 @@
+Types:
+PsiParameter:p : java.lang.Integer
+PsiReferenceExpression:p : java.lang.Integer
+
+Conversions:
+
+New expression type changes:
+Fails:
+Collections.singletonList(p)->java.util.List<java.lang.Integer>
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/test.java b/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/test.java
new file mode 100644
index 000000000000..7854f476cc9e
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t125/after/test.java
@@ -0,0 +1,7 @@
+import java.util.*;
+
+class Test {
+ public <U> List<U> meth(Integer p) {
+ return Collections.singletonList(p);
+ }
+} \ No newline at end of file
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t125/before/test.java b/plugins/typeMigration/testData/refactoring/typeMigration/t125/before/test.java
new file mode 100644
index 000000000000..30cf3914d62a
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t125/before/test.java
@@ -0,0 +1,7 @@
+import java.util.*;
+
+class Test {
+ public <U> List<U> meth(U p) {
+ return Collections.singletonList(p);
+ }
+} \ No newline at end of file