mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
576 B
TypeScript
32 lines
576 B
TypeScript
//// [tests/cases/compiler/es6DeclOrdering.ts] ////
|
|
|
|
//// [es6DeclOrdering.ts]
|
|
class Bar {
|
|
|
|
//public bar() { }
|
|
|
|
public foo() {
|
|
return this._store.length;
|
|
|
|
}
|
|
|
|
constructor(store: string) {
|
|
this._store = store; // this is an error for some reason? Unresolved symbol store
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//// [es6DeclOrdering.js]
|
|
"use strict";
|
|
class Bar {
|
|
//public bar() { }
|
|
foo() {
|
|
return this._store.length;
|
|
}
|
|
constructor(store) {
|
|
this._store = store; // this is an error for some reason? Unresolved symbol store
|
|
}
|
|
}
|