-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Has PRLibrary definitionsIssues or pull requests about core library definitionsIssues or pull requests about core library definitionsTyping: soundnessNo false negatives (type checker claims that there is no error in the incorrect program)No false negatives (type checker claims that there is no error in the incorrect program)bug
Description
With this code, Flow doesn't find the error:
type Plop = {
prop: string[],
};
var a: Plop = {
prop: Array(5).fill(1),
}I believe this is because the Array constructor returns an array of any items in
Line 293 in f796b60
| static (...values:Array<any>): Array<any>; |
Metadata
Metadata
Assignees
Labels
Has PRLibrary definitionsIssues or pull requests about core library definitionsIssues or pull requests about core library definitionsTyping: soundnessNo false negatives (type checker claims that there is no error in the incorrect program)No false negatives (type checker claims that there is no error in the incorrect program)bug