mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
577 B
TypeScript
25 lines
577 B
TypeScript
//// [tests/cases/conformance/es6/classDeclaration/parseClassDeclarationInStrictModeByDefaultInES6.ts] ////
|
|
|
|
//// [parseClassDeclarationInStrictModeByDefaultInES6.ts]
|
|
class C {
|
|
interface = 10;
|
|
public implements() { }
|
|
public foo(arguments: any) { }
|
|
private bar(eval:any) {
|
|
arguments = "hello";
|
|
}
|
|
}
|
|
|
|
//// [parseClassDeclarationInStrictModeByDefaultInES6.js]
|
|
"use strict";
|
|
class C {
|
|
constructor() {
|
|
this.interface = 10;
|
|
}
|
|
implements() { }
|
|
foo(arguments) { }
|
|
bar(eval) {
|
|
arguments = "hello";
|
|
}
|
|
}
|