Accepted baselines.

This commit is contained in:
Daniel Rosenwasser 2017-08-18 11:46:51 -07:00
parent 4983e11b67
commit 4ac9091ea1
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,23 @@
tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts(6,3): error TS2551: Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '___foo'?
==== tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts (1 errors) ====
// @filename abc.ts
export declare let a: {
__foo: 10,
}
a.___foo
~~~~~~
!!! error TS2551: Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '___foo'?
// @filename def.ts
export let b: {
__foo: number
}
b = {
__foo: 100,
}

View File

@ -0,0 +1,26 @@
//// [spellingSuggestionLeadingUnderscores01.ts]
// @filename abc.ts
export declare let a: {
__foo: 10,
}
a.___foo
// @filename def.ts
export let b: {
__foo: number
}
b = {
__foo: 100,
}
//// [spellingSuggestionLeadingUnderscores01.js]
"use strict";
exports.__esModule = true;
exports.a.___foo;
exports.b = {
__foo: 100
};