Skip to content

Instantly share code, notes, and snippets.

@khyperia
Created May 14, 2019 19:43
Show Gist options
  • Save khyperia/8cd5363f994e3e50412f1087efac962e to your computer and use it in GitHub Desktop.
Save khyperia/8cd5363f994e3e50412f1087efac962e to your computer and use it in GitHub Desktop.
// prints 1, 2, 3, 4
function f(x) {
console.log(x);
}
class C {
static [f(1)] = f(3);
static [f(2)] = f(4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment