Skip to content

Commit

Permalink
ProcurarFabricanteDeFonesDeOuvido to procurarFabricanteDeFonesDeOuvid…
Browse files Browse the repository at this point in the history
…o and do Retângulo to de Retangulo
  • Loading branch information
felipebit committed Aug 12, 2020
1 parent c0d5924 commit 4ffcc32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Quando habilitado, o TypeScript verificará todos os caminhos de código em uma

```ts twoslash
// @errors: 2366 2322
function ProcurarFabricanteDeFonesDeOuvido(cor: "azul" | "preto"): string {
function procurarFabricanteDeFonesDeOuvido(cor: "azul" | "preto"): string {
if (cor === "azul") {
return "beats";
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ oneline: "Emite erro nas expressões 'this' com tipo 'any' implícito"

Emite erro nas expressões 'this' com tipo 'any' implícito.

Por exemplo, a classe abaixo retorna uma função que tenta acessar `this.largura` e `this.area` – mas o contexto para `this` dentro da função dentro de `funcaoObterArea` não é a instância do Retângulo.
Por exemplo, a classe abaixo retorna uma função que tenta acessar `this.largura` e `this.area` – mas o contexto para `this` dentro da função dentro de `funcaoObterArea` não é a instância de `Retangulo`.

```ts twoslash
// @errors: 2683
Expand Down

0 comments on commit 4ffcc32

Please sign in to comment.