FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Can access non-static fields from static context #402

Open BSteffaniak opened 2 years ago

BSteffaniak commented 2 years ago

target and installCommand should be required to be static

visible CliArg target = new CliArg("target", ["t"])
visible CliCommand installCommand = new CliCommand("install", ["i"])

public static async main(String[] args) {
      FuCli cli = new FuCli([
            installCommand
      ], [
            target
      ])