Fix EA-126019: Handle 'null' PsiType as nullable Any in "Create" actions

This commit is contained in:
Yan Zhulanow
2019-09-20 20:14:56 +09:00
parent 472ec72eb9
commit d153aa87a8
9 changed files with 55 additions and 0 deletions
@@ -0,0 +1,5 @@
class Dep {
fun foo(): Any? {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -0,0 +1,8 @@
// "Add method 'foo' to 'Dep'" "true"
// RUNTIME_WITH_JDK_10
class J {
void test() {
Dep dep = new Dep();
var foo = dep.<selection><caret></selection>foo();
}
}
@@ -0,0 +1 @@
class Dep {}
@@ -0,0 +1,8 @@
// "Add method 'foo' to 'Dep'" "true"
// RUNTIME_WITH_JDK_10
class J {
void test() {
Dep dep = new Dep();
var foo = dep.<caret>foo();
}
}