Passing DataFlowInfo to local classes/objects
#KT-2835 In Progress #KT-2225 In Progress #KT-338 In Progress
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
trait D {
|
||||
fun foo(): String = ""
|
||||
}
|
||||
|
||||
fun test(d: Any?) {
|
||||
if (d !is D) return
|
||||
|
||||
class Local {
|
||||
fun f() {
|
||||
d.foo()
|
||||
}
|
||||
|
||||
fun f1() = d.foo()
|
||||
|
||||
fun f2(): String = d.foo()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user