facebook / facebook/flow

Autocomplete instance inherit properties cannot work with default type parameters

Aperta
#4,141 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
autocomplete
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```js
// @flow
class A> {
aa: string
}

class B extends A {
bb: number
}

class C extends A {
cc: number
}

const b = new B()
b.
// const c = new C()
// c.

```
Leave second parameter empty
```sh
$ ./node_modules/.bin/flow autocomplete 15 3 < ./Test.js
bb number
```

With second parameter
```js
//...
// const b = new B()
// b.
const c = new C()
c.

```

```sh
$ ./node_modules/.bin/flow autocomplete 17 3 < ./Test.js
aa string
cc number
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.