Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 632 Bytes

File metadata and controls

35 lines (25 loc) · 632 Bytes
dyvil v0.31.0

Header Declarations

Headers and Class Files can be optionally attributed with a Header Declaration. This allows you to use Class Files in using declarations and makes it possible to give a header custom access modifiers and annotations:

MyClass.dyv:

import java.util.{ Map, HashMap }

public @Annotated header MyClass

public class MyClass
{
    ...
}

MyOtherClass.dyv:

using MyClass

public class MyOtherClass
{
    static func main(args: [String]) -> void
    {
        let map: Map<String, String> = new HashMap<String, String> // no explicit import required
    }
}