Create from Usage: Support smart casts on explicit receivers
#KT-24069 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Create member function 'SomeObj.doSomething'" "true"
|
||||
class SomeObj { }
|
||||
|
||||
fun doSomething(p: Any): List<Number>{
|
||||
if (p is SomeObj){
|
||||
p.<caret>doSomething()
|
||||
|
||||
}
|
||||
return emptyList()
|
||||
}
|
||||
Reference in New Issue
Block a user