Skip to content

Commit

Permalink
[tests] Re-record tests under LTI
Browse files Browse the repository at this point in the history
Summary: Changelog: [internal]

Reviewed By: panagosg7

Differential Revision:
D43996288

------------------------------------------------------------------------
(from 975d3a3da073fa005100cbfac67ae5bbd3f42e3d)

fbshipit-source-id: 59b48421f037ff45f24959b494373edb89a126bb
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Mar 13, 2023
1 parent 3ebeac4 commit 6602fc3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 45 deletions.
1 change: 0 additions & 1 deletion tests/cli_renderer_color/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
all=true
exact_by_default=false
module.system=haste
inference_mode=constrain_writes
24 changes: 12 additions & 12 deletions tests/cli_renderer_color/cli_renderer_color.exp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,27 +1497,27 @@
 30| {


Error -------------------------------------------------------------------------------------------------- layout.js:32:10
Error --------------------------------------------------------------------------------------------------- layout.js:32:5

Cannot cast a = [...] to tuple type because function [1] is incompatible with empty [2] in index 0. [incompatible-cast]
Cannot compute a type for a because its definition includes references to itself [1]. Please add an annotation to this
definition [2] [recursive-definition]

 29|
 30| {
 31|  let a;
 [1][2] 32|  ((a = [() => a]): [empty & (() => empty)]);
 33| }
 34|
 29|
 30| {
 [2] 31|  let a;
 [1] 32|  ((a = [() => a]): [empty & (() => empty)]);
 33| }
 34|


Error -------------------------------------------------------------------------------------------------- layout.js:32:16
Error -------------------------------------------------------------------------------------------------- layout.js:32:10

Cannot cast a = [...] to tuple type because array literal [1] is incompatible with empty [2] in the return value of
index 0. [incompatible-cast]
Cannot cast a = [...] to tuple type because function [1] is incompatible with empty [2] in index 0. [incompatible-cast]

 29|
 30| {
 31|  let a;
 [1][2] 32|  ((a = [() => a]): [empty & (() => empty)]);
 [1][2] 32|  ((a = [() => a]): [empty & (() => empty)]);
 33| }
 34|

Expand Down
1 change: 0 additions & 1 deletion tests/suppress_traces/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
all=true
exact_by_default=false
include_warnings=true
inference_mode=constrain_writes
34 changes: 3 additions & 31 deletions tests/suppress_traces/suppress_traces.exp
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,12 @@ Trace:
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ NumT [number]
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ ~> UseT(FunReturnStatement, OpenT) [return] (from path 2)
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [call of `foo`] (from path 5)
15: var a: string = foo('hi'); // error number ~> string
^ ~> UseT(AssignVar, OpenT) [`a`]
^^^^^^ ~> UseT(AssignVar, StrT) [string] (from path 2)
* path 2:
12: return bar();
^^^^^ NumT [number]
12: return bar();
^^^^^ ~> UseT(UnknownUse, OpenT) [call of `bar`] (from path 3)
11: function foo(x: string) {
^ ~> UseT(FunReturnStatement, OpenT) [return]
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ ~> ReposLowerT [return] (from path 5)
* path 3:
12: return bar();
^^^ FunT [function]
12: return bar();
^^^^^ ~> CallT [call of `bar`] (from path 4)
* path 4:
12: return bar();
^^^ OpenT [`bar`]
12: return bar();
^^^^^ ~> CallT [call of `bar`]
* path 5:
15: var a: string = foo('hi'); // error number ~> string
^^^ FunT [function]
^^^^^^^^^ OpenT [call of `foo`]
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ ~> CallT [call of `foo`] (from path 6)
* path 6:
15: var a: string = foo('hi'); // error number ~> string
^^^ OpenT [`foo`]
15: var a: string = foo('hi'); // error number ~> string
^^^^^^^^^ ~> CallT [call of `foo`]
^ ~> UseT(AssignVar, OpenT) [`a`]


Warning -------------------------------------------------------------------------------------------------- traces.js:8:1
Expand Down

0 comments on commit 6602fc3

Please sign in to comment.