codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

ES6 class support #7

Closed RickWong closed 9 years ago

RickWong commented 9 years ago

I keep getting undefined and .kind TypeErrors when trying to Flow-annotate class methods like these:

class X {
  add (x: number, y: number): number { 
    return x + y; 
  }
}
phpnode commented 9 years ago

failed to replicate in cda89c4 if this is still an issue, please could you modify the test to make it fail and I'll re-open