8000 Traits with shared fields · Issue #839 · tact-lang/tact · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Traits with shared fields #839
Open
Open
@anton-trunov

Description

@anton-trunov
trait A { foo: Int }
trait B { foo: Int }

contract Test with A, B {
    foo: Int = 42;
}

The snippet above compiles just fine but field sharing may result in some weird behavior if the traits A and B use the shared field in an inconsistent manner.

Since this could be fine, we should not disallow field sharing but come up with a mechanism to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0