Find enclosing element for object literal in delegate #KT-8187 Fixed

This commit is contained in:
mglukhikh
2017-03-31 11:56:08 +03:00
committed by Mikhail Glukhikh
parent 6277476573
commit 9fa16364e1
3 changed files with 26 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
// Test for KT-8187
interface A {
fun get(x: Int)
}
class B : A by <error>object</error> : A {}
class C : A by (<error>object</error> : A {})
class D : A by 1 <error>+</error> (<error>object</error> : A {})
fun bar() {
val <warning>e</warning> = object : A by <error>object</error> : A {} {}
}