mrodz / mscript

Programming Language
Apache License 2.0
4 stars 1 forks source link

[specification] `import type` #158

Closed mrodz closed 8 months ago

mrodz commented 8 months ago

a.ms

import Dog from b
import type Dog from b
import b

puppy: Dog = Dog("Scout")
other_dog: b.Dog = Dog("Muna")

b.ms

export class Dog {
    name: str
    constructor(self, name: str) {
        self.name = name
    }
}