summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/typeMigration/t82
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/typeMigration/testData/refactoring/typeMigration/t82')
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t82/after/Test.items9
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t82/after/test.java11
-rw-r--r--plugins/typeMigration/testData/refactoring/typeMigration/t82/before/test.java11
3 files changed, 31 insertions, 0 deletions
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/Test.items b/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/Test.items
new file mode 100644
index 000000000000..5164a4b2f6d9
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/Test.items
@@ -0,0 +1,9 @@
+Types:
+PsiParameter:o : C
+PsiReferenceExpression:o : C
+
+Conversions:
+
+New expression type changes:
+Fails:
+o->C
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/test.java b/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/test.java
new file mode 100644
index 000000000000..83b747a3cb27
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t82/after/test.java
@@ -0,0 +1,11 @@
+class C{}
+
+class A {}
+
+class B extends A {}
+
+class Test {
+ void foo(C o) {
+ if (o instanceof B){}
+ }
+} \ No newline at end of file
diff --git a/plugins/typeMigration/testData/refactoring/typeMigration/t82/before/test.java b/plugins/typeMigration/testData/refactoring/typeMigration/t82/before/test.java
new file mode 100644
index 000000000000..cb617f44766f
--- /dev/null
+++ b/plugins/typeMigration/testData/refactoring/typeMigration/t82/before/test.java
@@ -0,0 +1,11 @@
+class C{}
+
+class A {}
+
+class B extends A {}
+
+class Test {
+ void foo(Object o) {
+ if (o instanceof B){}
+ }
+} \ No newline at end of file