-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
128 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ERROR: InvalidArgument - input.hack:13:14 - Argument 1 of echo expects scalar|null, different type Exception provided | ||
ERROR: InvalidArgument - input.hack:13:14 - Argument 1 of echo expects ?scalar, different type Exception provided |
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,7 +1,7 @@ | ||
ERROR: NonExistentClass - input.hack:8:11 - Cannot call new on undefined class A | ||
ERROR: NonExistentType - input.hack:12:10 - Unknown class A | ||
ERROR: MixedAnyArgument - input.hack:12:10 - Argument 1 of echo expects scalar|null, any provided | ||
ERROR: MixedAnyArgument - input.hack:12:10 - Argument 1 of echo expects ?scalar, any provided | ||
ERROR: NonExistentType - input.hack:17:14 - Unknown class A | ||
ERROR: MixedAnyArgument - input.hack:17:14 - Argument 1 of echo expects scalar|null, any provided | ||
ERROR: MixedAnyArgument - input.hack:17:14 - Argument 1 of echo expects ?scalar, any provided | ||
ERROR: NonExistentClass - input.hack:21:15 - Cannot call new on undefined class A | ||
ERROR: InvalidReturnStatement - input.hack:26:16 - The type string(a) does not match the declared return type int for B::bat |
4 changes: 2 additions & 2 deletions
4
tests/inference/ArrayAccess/mixedArrayAccessDictWrapped/output.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ERROR: PossiblyUndefinedStringArrayOffset - input.hack:6:10 - Fetch on dict<arraykey,any> using possibly-undefined key 'foo' | ||
ERROR: MixedAnyArgument - input.hack:6:10 - Argument 1 of echo expects scalar|null, any provided | ||
ERROR: PossiblyUndefinedStringArrayOffset - input.hack:6:10 - Fetch on dict<arraykey, any> using possibly-undefined key 'foo' | ||
ERROR: MixedAnyArgument - input.hack:6:10 - Argument 1 of echo expects ?scalar, any provided |
2 changes: 1 addition & 1 deletion
2
tests/inference/ArrayAssignment/nestedKeysetAddition/output.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 |
---|---|---|
@@ -1 +1 @@ | ||
InvalidReturnStatement - input.hack:9:12 - The type dict<string,keyset<int>> does not match the declared return type dict<string,keyset<string>> for foo | ||
InvalidReturnStatement - input.hack:9:12 - The type dict<string, keyset<int>> does not match the declared return type dict<string, keyset<string>> for foo |
4 changes: 2 additions & 2 deletions
4
tests/inference/ArrayFunctionCall/arrayContains/checksKeyIfArrayTypeMatch/output.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ERROR: ImpossibleKeyCheck - input.hack:7:9 - Type vec<string> never has key 's' | ||
ERROR: ImpossibleKeyCheck - input.hack:11:9 - Type vec<string> never has key 't' | ||
ERROR: ImpossibleKeyCheck - input.hack:24:9 - Type dict<string,string> never has key 1 | ||
ERROR: ImpossibleKeyCheck - input.hack:28:9 - Type dict<string,string> never has key 2 | ||
ERROR: ImpossibleKeyCheck - input.hack:24:9 - Type dict<string, string> never has key 1 | ||
ERROR: ImpossibleKeyCheck - input.hack:28:9 - Type dict<string, string> never has key 2 |
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,3 +1,3 @@ | ||
ERROR: LessSpecificNestedAnyReturnStatement - input.hack:2:12 - The type dict<arraykey,string> is more general than the declared return type dict<string,string> for foo | ||
ERROR: LessSpecificNestedAnyReturnStatement - input.hack:2:12 - The type dict<arraykey, string> is more general than the declared return type dict<string, string> for foo | ||
ERROR: MixedArgument - input.hack:3:9 - Argument 1 of HH\Lib\Dict\from_keys expects HH\Traversable<arraykey>, mixed provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:4:28 - Argument 1 of takesString expects string, parent type arraykey provided |
8 changes: 4 additions & 4 deletions
8
tests/inference/DictVecKeyset/lessSpecificTypeFromDictMixed/output.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:6:14 - Argument 1 of foo1 expects shape('id' => string, 'name' => string), parent type dict<arraykey,any> provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:7:14 - Argument 1 of foo2 expects shape('id' => string, 'name' => string, ...dict<arraykey,any>), parent type dict<arraykey,any> provided | ||
ERROR: LessSpecificNestedArgumentType - input.hack:12:10 - Argument 1 of foo1 expects shape('id' => string, 'name' => string), parent type dict<string,mixed> provided | ||
ERROR: LessSpecificNestedArgumentType - input.hack:13:10 - Argument 1 of foo2 expects shape('id' => string, 'name' => string, ...dict<arraykey,any>), parent type dict<string,mixed> provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:6:14 - Argument 1 of foo1 expects shape('id' => string, 'name' => string), parent type dict<arraykey, any> provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:7:14 - Argument 1 of foo2 expects shape('id' => string, 'name' => string, ...dict<arraykey, any>), parent type dict<arraykey, any> provided | ||
ERROR: LessSpecificNestedArgumentType - input.hack:12:10 - Argument 1 of foo1 expects shape('id' => string, 'name' => string), parent type dict<string, mixed> provided | ||
ERROR: LessSpecificNestedArgumentType - input.hack:13:10 - Argument 1 of foo2 expects shape('id' => string, 'name' => string, ...dict<arraykey, any>), parent type dict<string, mixed> provided |
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,2 +1,2 @@ | ||
ERROR: MixedAnyArgument - input.hack:4:29 - Argument 1 of HH\vec expects HH\Traversable<any>, any provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:6:9 - Argument 1 of foo expects shape('a' => null|vec<shape('b' => string)>), parent type shape('a' => vec<any>|null) provided | ||
ERROR: LessSpecificNestedAnyArgumentType - input.hack:6:9 - Argument 1 of foo expects shape('a' => ?vec<shape('b' => string)>), parent type shape('a' => ?vec<any>) provided |
2 changes: 1 addition & 1 deletion
2
tests/inference/Interface/interfaceRequireExtendsClassNegation/output.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 |
---|---|---|
@@ -1 +1 @@ | ||
ERROR: InvalidArgument - input.hack:21:10 - Argument 1 of echo expects scalar|null, different type Node provided | ||
ERROR: InvalidArgument - input.hack:21:10 - Argument 1 of echo expects ?scalar, different type Node provided |
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 +1 @@ | ||
ERROR: InvalidArgument - input.hack:11:14 - Argument 1 of echo expects scalar|null, different type Exception provided | ||
ERROR: InvalidArgument - input.hack:11:14 - Argument 1 of echo expects ?scalar, different type Exception provided |
2 changes: 1 addition & 1 deletion
2
tests/inference/TypeAlias/classConstTypeAliasViaTrait/output.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 |
---|---|---|
@@ -1 +1 @@ | ||
ERROR: InvalidArgument - input.hack:23:14 - Argument 1 of echo expects scalar|null, different type Exception provided | ||
ERROR: InvalidArgument - input.hack:23:14 - Argument 1 of echo expects ?scalar, different type Exception provided |
2 changes: 1 addition & 1 deletion
2
tests/inference/TypeReconciliation/AsExpression/nestedAnyArrayAccess/output.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ERROR: MixedAnyArrayAccess - input.hack:3:10 - Unsafe array access on value with type any | ||
ERROR: MixedAnyArrayAccess - input.hack:4:10 - Unsafe array access on value with type nonnull-from-any | ||
ERROR: MixedAnyArgument - input.hack:4:10 - Argument 1 of echo expects scalar|null, any provided | ||
ERROR: MixedAnyArgument - input.hack:4:10 - Argument 1 of echo expects ?scalar, any provided | ||
ERROR: MixedAnyReturnStatement - input.hack:5:12 - Could not infer a proper return type — saw nonnull-from-any |
Oops, something went wrong.