Files
tsgo/testdata/baselines/reference/submodule/compiler/exactSpellingSuggestion.js

26 lines
589 B
TypeScript

//// [tests/cases/compiler/exactSpellingSuggestion.ts] ////
//// [exactSpellingSuggestion.ts]
// Fixes #16245 -- always suggest the exact match, even when
// other options are very close
enum U8 {
BIT_0 = 1 << 0,
BIT_1 = 1 << 1,
BIT_2 = 1 << 2
}
U8.bit_2
//// [exactSpellingSuggestion.js]
"use strict";
// Fixes #16245 -- always suggest the exact match, even when
// other options are very close
var U8;
(function (U8) {
U8[U8["BIT_0"] = 1] = "BIT_0";
U8[U8["BIT_1"] = 2] = "BIT_1";
U8[U8["BIT_2"] = 4] = "BIT_2";
})(U8 || (U8 = {}));
U8.bit_2;