KtDeclaration.containingClassOrObject now works correctly for primary constructor and its parameters #KT-11982 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-04-20 18:18:32 +03:00
committed by Mikhail Glukhikh
parent 454a8474f1
commit a12faf5baf
3 changed files with 38 additions and 1 deletions
@@ -40,3 +40,15 @@ interface Derived : Interface {
// Redundant
final class Nested
}
// Derived abstract class
abstract class AbstractDerived1(override final val gav: Int) : Interface {
// Redundant
override open fun foo() {}
}
// Derived abstract class
abstract class AbstractDerived2 : Interface {
// Final
override final fun foo() {}
// Redundant
override open val gav = 13
}