mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Resurrect SuppressAnyReturnType, but make it used only at the toplevel
This commit is contained in:
@@ -43,7 +43,7 @@ abstract class AbstractCstVisitor {
|
||||
): Set<this_will_be_collapsed>;
|
||||
}
|
||||
class CstVisitorImplementation extends AbstractCstVisitor {
|
||||
Node(arg1: [some.really.long.generated.type.goes.here.you.know.this_.should.be.pretty.simple.Yah[], another.really.long.generated.type.goes.here.too.because.who.cares.about.space.do_.you.feel.me.Yah[]], arg2: [this_will_be_collapsed], arg3: any, arg4: this_is_fine): any {
|
||||
Node(arg1: [some.really.long.generated.type.goes.here.you.know.this_.should.be.pretty.simple.Yah[], another.really.long.generated.type.goes.here.too.because.who.cares.about.space.do_.you.feel.me.Yah[]], arg2: [this_will_be_collapsed], arg3: any, arg4: this_is_fine) {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
}`
|
||||
|
||||
@@ -43,11 +43,11 @@ class C implements I<number> {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
[Symbol.isConcatSpreadable]: boolean;
|
||||
[Symbol.iterator](): any {
|
||||
[Symbol.iterator]() {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
[Symbol.match]: boolean;
|
||||
[Symbol.replace](...args: {}): any {
|
||||
[Symbol.replace](...args: {}) {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
[Symbol.search](str: string): number {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
//// y: number
|
||||
//// z: number;
|
||||
//// f(): number,
|
||||
//// g()
|
||||
//// g(): any
|
||||
//// h();
|
||||
////}
|
||||
////
|
||||
@@ -19,7 +19,7 @@ verify.codeFix({
|
||||
y: number
|
||||
z: number;
|
||||
f(): number,
|
||||
g()
|
||||
g(): any
|
||||
h();
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@ class C1 implements I1 {
|
||||
f(): number {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
g(): any {
|
||||
g() {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
h(): any {
|
||||
h() {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
}`,
|
||||
|
||||
Reference in New Issue
Block a user