mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
Parse an object literal property as shorthand unless followed by '(' or ':' (#28121)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var tt = { aa; } // After this point, no useful parsing occurs in the entire file
|
||||
var tt = { aa; }
|
||||
|
||||
if (true) {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noLib: true
|
||||
|
||||
////f({
|
||||
//// a/**/
|
||||
//// xyz: ``,
|
||||
////});
|
||||
////declare function f(options: { abc?: number, xyz?: string }): void;
|
||||
|
||||
verify.completions({
|
||||
marker: "",
|
||||
exact: ["abc"],
|
||||
});
|
||||
Reference in New Issue
Block a user