ed8b76424e
* add grammar check for labeled function declaration * fix debug failed on labeled class declaration * move labeled statement check to binder and add more pattern for check * update diagnostic message * update baseline
15 lines
293 B
TypeScript
15 lines
293 B
TypeScript
// @target: es2015
|
|
"use strict"
|
|
label: function fn() { }
|
|
label: function* gen() { }
|
|
label: async function gen1() { }
|
|
label: enum E {}
|
|
label: interface I {}
|
|
label: class C { }
|
|
label: var a = 1;
|
|
label: let b = 1;
|
|
label: const c = 1;
|
|
|
|
label: module M { }
|
|
label: namespace N {}
|
|
label: type T = {}
|