Closed mrodz closed 8 months ago
import type NAME from file.ms
import NAME, NAME_2 from file.ms
import NAME, type NAME_2, NAME_3, type NAME_4 from file.ms
a.ms
import type Foo, type Bar, Fizz from b wooza: Foo = Fizz(42) const num: Bar = "hello" assert (wooza.do_math(8) - 4) * 3 == 63 accept_string_like = fn(input: str) -> str { return input + "!" } assert accept_string_like(num) == "hello!" assert accept_string_like("basic") == "basic!"
b.ms
type NumberzAreKool int export class Fizz { state: int constructor(self, init: NumberzAreKool) { self.state = init } fn do_math(self, other: int) -> NumberzAreKool { return (self.state + other) / 2 } } export type Foo Fizz type Stool str export type Bar Stool
clean
Special imports
import type NAME from file.ms
import NAME, NAME_2 from file.ms
import NAME, type NAME_2, NAME_3, type NAME_4 from file.ms
Examples
a.ms
b.ms
Added
clean
commandUnit tests