tree-sitter-kotlin icon indicating copy to clipboard operation
tree-sitter-kotlin copied to clipboard

Overriding a member of an interface implemented by delegation

Open saecki opened this issue 3 years ago • 0 comments

As shown here, interfaces can be implemented by delegation to a constructor parameter. Currently the delegation is parsed as a call_expression.

class Derived(b: Base) : Base by b {
    override fun printMessage() { print("abc") }
}

saecki avatar Jun 15 '22 23:06 saecki