Skip to content

Package

justinmann edited this page Dec 24, 2017 · 1 revision

You can store your function, variables, and interfaces in a package to avoid name collision to code elsewhere.

package foo {
    x : 1
    bar() { this }
}

package foo2 {
    x : 2
    bar2() { this }
}

foo.bar()

import foo, f2: foo2 {
    a : x + f2.x
    bar()
    f2.bar()
}

Clone this wiki locally