mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
442 B
TypeScript
28 lines
442 B
TypeScript
//// [tests/cases/compiler/anyIdenticalToItself.ts] ////
|
|
|
|
//// [anyIdenticalToItself.ts]
|
|
function foo(x: any);
|
|
function foo(x: any);
|
|
function foo(x: any, y: number) { }
|
|
|
|
class C {
|
|
get X(): any {
|
|
var y: any;
|
|
return y;
|
|
}
|
|
set X(v: any) {
|
|
}
|
|
}
|
|
|
|
//// [anyIdenticalToItself.js]
|
|
"use strict";
|
|
function foo(x, y) { }
|
|
class C {
|
|
get X() {
|
|
var y;
|
|
return y;
|
|
}
|
|
set X(v) {
|
|
}
|
|
}
|