Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NTI] When there is a type mismatch, show the part of the type causin…
…g the mismatch when possible. ///////////////////////////////////////////// Sample new messages: Invalid type for parameter 1 of function f. Expected : {a:number, b:string} Found : {a:number, b:number} More details: Incompatible types for property b. Expected : string Found : number Invalid type for parameter 1 of function f. Expected : Foo Found : Bar|null More details: The found type is a union that includes an unexpected type: null Invalid type for parameter 1 of function f. Expected : function(number|string):? Found : function(number):undefined More details: The expected and found types are functions which have incompatible types for argument 1. Expected a supertype of : number|string but found : number ///////////////////////////////////////////// ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122292354
- Loading branch information
Showing
7 changed files
with
551 additions
and
65 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
Oops, something went wrong.