// @flow

import React from 'react';

class MyComponent extends React.Component {
  static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
  props: Props;

  defaultProps: T;
  static props: T;
  static state: T;
  a: T;
  b = 5;
  c: T = 5;
  method() {}
}

const expression = () =>
  class extends React.Component {
    static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
    props: Props;

    defaultProps: T;
    static props: T;
    static state: T;
    a: T;
    b = 5;
    c: T = 5;
    method() {}
  }
