Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
WIP: Fix regression where readonly-array is reporting error at assign…
…ment site (#105) * Add test * Fixed
- Loading branch information
1 parent
d3ab2cf
commit 636a6b2
Showing
6 changed files
with
49 additions
and
37 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
|
||
class Foo { | ||
|
||
foo(bar: Array<string>, zoo: ReadonlyArray<string>, boo = [1, 2, 3]) { | ||
~~~~~~~~~~~~~ [failure] | ||
~~~ [failure] | ||
|
||
const foo: Array<string> = []; | ||
} | ||
|
||
const foo = [1, 2, 3] | ||
~~~ [failure] | ||
} | ||
|
||
[failure]: Only ReadonlyArray allowed. |