mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 20:51:43 -06:00
Duplicate symbol error
This commit is contained in:
parent
086d3945eb
commit
6116cc9c59
@ -0,0 +1,12 @@
|
||||
tests/cases/compiler/a.js(1,5): error TS2300: Duplicate identifier 'a'.
|
||||
tests/cases/compiler/a.js(2,7): error TS2300: Duplicate identifier 'a'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/a.js (2 errors) ====
|
||||
var a = 10;
|
||||
~
|
||||
!!! error TS2300: Duplicate identifier 'a'.
|
||||
class a {
|
||||
~
|
||||
!!! error TS2300: Duplicate identifier 'a'.
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
// @allowJs: true
|
||||
// @noEmit: true
|
||||
// @filename: a.js
|
||||
var a = 10;
|
||||
class a {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user