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()
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Create member function 'SomeObj.doSomething'" "true"
|
||||
class SomeObj {
|
||||
fun doSomething() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
fun doSomething(p: Any): List<Number>{
|
||||
if (p is SomeObj){
|
||||
p.doSomething()
|
||||
|
||||
}
|
||||
return emptyList()
|
||||
}
|
||||
Reference in New Issue
Block a user