Skip to content

Commit a1ad389

Browse files
Accepted baselines.
1 parent 7739a1c commit a1ad389

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

tests/baselines/reference/spellingSuggestionLeadingUnderscores01.errors.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts(6,3): error TS2551: Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '__foo'?
2+
tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts(14,5): error TS2322: Type '{ ___foo: number; }' is not assignable to type '{ __foo: number; }'.
3+
Object literal may only specify known properties, but '___foo' does not exist in type '{ __foo: number; }'. Did you mean to write '__foo'?
24

35

4-
==== tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts (1 errors) ====
6+
==== tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts (2 errors) ====
57
// @filename abc.ts
68
export declare let a: {
79
__foo: 10,
@@ -17,7 +19,10 @@ tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts(6,3): error TS255
1719
}
1820

1921
b = {
20-
__foo: 100,
22+
___foo: 100,
23+
~~~~~~~~~~~
24+
!!! error TS2322: Type '{ ___foo: number; }' is not assignable to type '{ __foo: number; }'.
25+
!!! error TS2322: Object literal may only specify known properties, but '___foo' does not exist in type '{ __foo: number; }'. Did you mean to write '__foo'?
2126
}
2227

2328

tests/baselines/reference/spellingSuggestionLeadingUnderscores01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export let b: {
1212
}
1313

1414
b = {
15-
__foo: 100,
15+
___foo: 100,
1616
}
1717

1818

@@ -22,5 +22,5 @@ b = {
2222
exports.__esModule = true;
2323
exports.a.___foo;
2424
exports.b = {
25-
__foo: 100
25+
___foo: 100
2626
};

0 commit comments

Comments
 (0)