Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
Typescript bug demonstration #1
class TestClass {
makeFunction(): (someCondition: boolean) => boolean {
return (someCondition: boolean = false) => {
return someCondition;
}
};
}
let test = new TestClass();
let generatedFunction = test.makeFunction();
console.log(generatedFunction());
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.