mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
429 B
TypeScript
21 lines
429 B
TypeScript
//// [tests/cases/compiler/errorSupression1.ts] ////
|
|
|
|
//// [errorSupression1.ts]
|
|
class Foo { static bar() { return "x"; } }
|
|
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
|
|
// So we don't want an error on 'concat'.
|
|
|
|
//// [errorSupression1.js]
|
|
"use strict";
|
|
class Foo {
|
|
static bar() { return "x"; }
|
|
}
|
|
var baz = Foo.b;
|
|
// Foo.b won't bind.
|
|
baz.concat("y");
|
|
// So we don't want an error on 'concat'.
|