Passing DataFlowInfo to local classes/objects

#KT-2835 In Progress
#KT-2225 In Progress
#KT-338 In Progress
This commit is contained in:
Andrey Breslav
2013-08-19 18:24:11 +04:00
parent 4908766813
commit 3d28c4cdb2
10 changed files with 138 additions and 9 deletions
@@ -0,0 +1,16 @@
// KT-338 Support autocasts in nested declarations
fun f(a: Any?) {
if (a is B) {
class C : X(a) {
{
a.foo()
}
}
}
}
trait B {
fun foo() {}
}
open class X(b: B)