DelegationSpecifier resolve depends on expected type (supertype)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
open class Foo() {
|
||||
|
||||
}
|
||||
|
||||
class Barrr() : <!DELEGATION_NOT_TO_TRAIT!>Foo<!> by Foo() {}
|
||||
|
||||
trait T {}
|
||||
|
||||
class Br(t : T) : T by t {}
|
||||
|
||||
<!OPEN_MODIFIER_IN_ENUM!>open<!> enum class EN() {
|
||||
A
|
||||
}
|
||||
|
||||
class Test2(e : EN) : <!DELEGATION_NOT_TO_TRAIT!>EN<!> by e {}
|
||||
Reference in New Issue
Block a user