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 2 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