Skip to content

Instantly share code, notes, and snippets.

@bufferings
Created March 21, 2018 06:27
Show Gist options
  • Save bufferings/e9c757c90631149650d3e082803bad99 to your computer and use it in GitHub Desktop.
Save bufferings/e9c757c90631149650d3e082803bad99 to your computer and use it in GitHub Desktop.
var遊び
jshell> Var var(){return new Var();}
| created method var(), however, it cannot be referenced until class Var is declared
jshell> class Var{Var1 var = new Var1();}
| created class Var, however, it cannot be referenced until class Var1 is declared
jshell> class Var1{Var var(){return new Var();}}
| created class Var1
jshell> var var = var().var.var();
var ==> Var@58651fd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment