Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into release-3.5
- Loading branch information
Showing
10 changed files
with
101 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/assigningFunctionToTupleIssuesError.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests/cases/compiler/assigningFunctionToTupleIssuesError.ts(2,5): error TS2322: Type '() => void' is not assignable to type '[string]'. | ||
|
||
|
||
==== tests/cases/compiler/assigningFunctionToTupleIssuesError.ts (1 errors) ==== | ||
declare let a: () => void; | ||
let b: [string] = a; | ||
~ | ||
!!! error TS2322: Type '() => void' is not assignable to type '[string]'. |
6 changes: 6 additions & 0 deletions
6
tests/baselines/reference/assigningFunctionToTupleIssuesError.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//// [assigningFunctionToTupleIssuesError.ts] | ||
declare let a: () => void; | ||
let b: [string] = a; | ||
|
||
//// [assigningFunctionToTupleIssuesError.js] | ||
var b = a; |
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/assigningFunctionToTupleIssuesError.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/compiler/assigningFunctionToTupleIssuesError.ts === | ||
declare let a: () => void; | ||
>a : Symbol(a, Decl(assigningFunctionToTupleIssuesError.ts, 0, 11)) | ||
|
||
let b: [string] = a; | ||
>b : Symbol(b, Decl(assigningFunctionToTupleIssuesError.ts, 1, 3)) | ||
>a : Symbol(a, Decl(assigningFunctionToTupleIssuesError.ts, 0, 11)) | ||
|
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/assigningFunctionToTupleIssuesError.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
=== tests/cases/compiler/assigningFunctionToTupleIssuesError.ts === | ||
declare let a: () => void; | ||
>a : () => void | ||
|
||
let b: [string] = a; | ||
>b : [string] | ||
>a : () => void | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare let a: () => void; | ||
let b: [string] = a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
////class Cat { | ||
//// /** | ||
//// * NOTE: this constructor is private! Please use the factory function | ||
//// */ | ||
//// private constructor() { } | ||
//// | ||
//// static makeCat() { new Cat(); } | ||
////} | ||
//// | ||
////ne/*1*/w Ca/*2*/t(); | ||
|
||
verify.quickInfoAt('1', 'constructor Cat(): Cat', | ||
'NOTE: this constructor is private! Please use the factory function'); | ||
|
||
verify.quickInfoAt('2', 'constructor Cat(): Cat', | ||
'NOTE: this constructor is private! Please use the factory function'); |