Add Parameter Fix: Support smart casts
#KT-24207 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Add parameter to function 'fooFun'" "true"
|
||||
sealed class Foo {
|
||||
class SubFoo : Foo()
|
||||
class Sub2Foo : Foo()
|
||||
}
|
||||
|
||||
fun fooFun(): Int = 1
|
||||
|
||||
val subFoo: Foo = Foo.SubFoo()
|
||||
val bar = when(subFoo){
|
||||
is Foo.SubFoo -> fooFun(<caret>subFoo)
|
||||
else -> 0
|
||||
}
|
||||
Reference in New Issue
Block a user