mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 18:11:45 -06:00
Accepted baselines.
This commit is contained in:
parent
4983e11b67
commit
4ac9091ea1
@ -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,
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user