Skip to content

Instantly share code, notes, and snippets.

@frontierpsycho frontierpsycho/index.ts
Last active Oct 5, 2016

What would you like to do?
Typescript bug demonstration #2
class TestClass {
makeFunction(): (someCondition: boolean) => boolean {
return (someCondition: boolean = false) => {
return someCondition;
let test = new TestClass();
let generatedFunction = test.makeFunction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.