Accepted baselines.
This commit is contained in:
parent
eb95532bfa
commit
2b20d3092b
11 changed files with 147 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
tests/cases/compiler/classExpressionWithResolutionOfNamespaceOfSameName01.ts(6,15): error TS9003: 'class' expressions are not currently supported.
|
||||||
|
|
||||||
|
|
||||||
|
==== tests/cases/compiler/classExpressionWithResolutionOfNamespaceOfSameName01.ts (1 errors) ====
|
||||||
|
namespace C {
|
||||||
|
export interface type {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = class C {
|
||||||
|
~
|
||||||
|
!!! error TS9003: 'class' expressions are not currently supported.
|
||||||
|
prop: C.type;
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
//// [classExpressionWithResolutionOfNamespaceOfSameName01.ts]
|
||||||
|
namespace C {
|
||||||
|
export interface type {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = class C {
|
||||||
|
prop: C.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
//// [classExpressionWithResolutionOfNamespaceOfSameName01.js]
|
||||||
|
var x = (function () {
|
||||||
|
function C() {
|
||||||
|
}
|
||||||
|
return C;
|
||||||
|
})();
|
|
@ -0,0 +1,12 @@
|
||||||
|
//// [functionDeclarationWithResolutionOfTypeNamedArguments01.ts]
|
||||||
|
interface arguments {
|
||||||
|
}
|
||||||
|
|
||||||
|
function f() {
|
||||||
|
<arguments>arguments;
|
||||||
|
}
|
||||||
|
|
||||||
|
//// [functionDeclarationWithResolutionOfTypeNamedArguments01.js]
|
||||||
|
function f() {
|
||||||
|
arguments;
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
=== tests/cases/compiler/functionDeclarationWithResolutionOfTypeNamedArguments01.ts ===
|
||||||
|
interface arguments {
|
||||||
|
>arguments : Symbol(arguments, Decl(functionDeclarationWithResolutionOfTypeNamedArguments01.ts, 0, 0))
|
||||||
|
}
|
||||||
|
|
||||||
|
function f() {
|
||||||
|
>f : Symbol(f, Decl(functionDeclarationWithResolutionOfTypeNamedArguments01.ts, 1, 1))
|
||||||
|
|
||||||
|
<arguments>arguments;
|
||||||
|
>arguments : Symbol(arguments, Decl(functionDeclarationWithResolutionOfTypeNamedArguments01.ts, 0, 0))
|
||||||
|
>arguments : Symbol(arguments)
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
=== tests/cases/compiler/functionDeclarationWithResolutionOfTypeNamedArguments01.ts ===
|
||||||
|
interface arguments {
|
||||||
|
>arguments : arguments
|
||||||
|
}
|
||||||
|
|
||||||
|
function f() {
|
||||||
|
>f : () => void
|
||||||
|
|
||||||
|
<arguments>arguments;
|
||||||
|
><arguments>arguments : arguments
|
||||||
|
>arguments : arguments
|
||||||
|
>arguments : IArguments
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
//// [functionExpressionWithResolutionOfTypeNamedArguments01.ts]
|
||||||
|
interface arguments {
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
<arguments>arguments;
|
||||||
|
}
|
||||||
|
|
||||||
|
//// [functionExpressionWithResolutionOfTypeNamedArguments01.js]
|
||||||
|
var x = function f() {
|
||||||
|
arguments;
|
||||||
|
};
|
|
@ -0,0 +1,13 @@
|
||||||
|
=== tests/cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts ===
|
||||||
|
interface arguments {
|
||||||
|
>arguments : Symbol(arguments, Decl(functionExpressionWithResolutionOfTypeNamedArguments01.ts, 0, 0))
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
>x : Symbol(x, Decl(functionExpressionWithResolutionOfTypeNamedArguments01.ts, 3, 3))
|
||||||
|
>f : Symbol(f, Decl(functionExpressionWithResolutionOfTypeNamedArguments01.ts, 3, 7))
|
||||||
|
|
||||||
|
<arguments>arguments;
|
||||||
|
>arguments : Symbol(arguments, Decl(functionExpressionWithResolutionOfTypeNamedArguments01.ts, 0, 0))
|
||||||
|
>arguments : Symbol(arguments)
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
=== tests/cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts ===
|
||||||
|
interface arguments {
|
||||||
|
>arguments : arguments
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
>x : () => void
|
||||||
|
>function f() { <arguments>arguments;} : () => void
|
||||||
|
>f : () => void
|
||||||
|
|
||||||
|
<arguments>arguments;
|
||||||
|
><arguments>arguments : arguments
|
||||||
|
>arguments : arguments
|
||||||
|
>arguments : IArguments
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
//// [functionExpressionWithResolutionOfTypeOfSameName01.ts]
|
||||||
|
interface f {
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
<f>f;
|
||||||
|
}
|
||||||
|
|
||||||
|
//// [functionExpressionWithResolutionOfTypeOfSameName01.js]
|
||||||
|
var x = function f() {
|
||||||
|
f;
|
||||||
|
};
|
|
@ -0,0 +1,13 @@
|
||||||
|
=== tests/cases/compiler/functionExpressionWithResolutionOfTypeOfSameName01.ts ===
|
||||||
|
interface f {
|
||||||
|
>f : Symbol(f, Decl(functionExpressionWithResolutionOfTypeOfSameName01.ts, 0, 0))
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
>x : Symbol(x, Decl(functionExpressionWithResolutionOfTypeOfSameName01.ts, 3, 3))
|
||||||
|
>f : Symbol(f, Decl(functionExpressionWithResolutionOfTypeOfSameName01.ts, 3, 7))
|
||||||
|
|
||||||
|
<f>f;
|
||||||
|
>f : Symbol(f, Decl(functionExpressionWithResolutionOfTypeOfSameName01.ts, 0, 0))
|
||||||
|
>f : Symbol(f, Decl(functionExpressionWithResolutionOfTypeOfSameName01.ts, 3, 7))
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
=== tests/cases/compiler/functionExpressionWithResolutionOfTypeOfSameName01.ts ===
|
||||||
|
interface f {
|
||||||
|
>f : f
|
||||||
|
}
|
||||||
|
|
||||||
|
var x = function f() {
|
||||||
|
>x : () => void
|
||||||
|
>function f() { <f>f;} : () => void
|
||||||
|
>f : () => void
|
||||||
|
|
||||||
|
<f>f;
|
||||||
|
><f>f : f
|
||||||
|
>f : f
|
||||||
|
>f : () => void
|
||||||
|
}
|
Loading…
Reference in a new issue