Skip to content

Instantly share code, notes, and snippets.

@joshaber
Created April 7, 2016 19:35
Show Gist options
  • Save joshaber/4a8e3907deac9f842cfa72b92b9cace7 to your computer and use it in GitHub Desktop.
Save joshaber/4a8e3907deac9f842cfa72b92b9cace7 to your computer and use it in GitHub Desktop.
class Class1 {
prop: number
}
class Class2 {
prop: number
}
let a: Class1 = new Class1()
a = new Class2()
// Typechecks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment