mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
49 lines
681 B
TypeScript
49 lines
681 B
TypeScript
function a(a = 10) {
|
|
"use strict";
|
|
}
|
|
|
|
export var foo = 10;
|
|
function b(a = 10) {
|
|
}
|
|
|
|
function container() {
|
|
"use strict";
|
|
function f(a = 10) {
|
|
}
|
|
}
|
|
|
|
function rest(...args: any[]) {
|
|
'use strict';
|
|
}
|
|
|
|
function rest1(a = 1, ...args) {
|
|
'use strict';
|
|
}
|
|
|
|
function paramDefault(param = 1) {
|
|
'use strict';
|
|
}
|
|
|
|
function objectBindingPattern({foo}: any) {
|
|
'use strict';
|
|
}
|
|
|
|
function arrayBindingPattern([foo]: any[]) {
|
|
'use strict';
|
|
}
|
|
|
|
function manyParameter(a = 10, b = 20) {
|
|
"use strict";
|
|
}
|
|
|
|
function manyPrologue(a = 10, b = 20) {
|
|
"foo";
|
|
"use strict";
|
|
}
|
|
|
|
function invalidPrologue(a = 10, b = 20) {
|
|
"foo";
|
|
const c = 1;
|
|
"use strict";
|
|
}
|