mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Accepted baselines.
This commit is contained in:
@@ -4,7 +4,6 @@ tests/cases/compiler/fuzzy.ts(21,20): error TS2322: Type '{ anything: number; on
|
||||
Types of property 'oneI' are incompatible.
|
||||
Type 'this' is not assignable to type 'I'.
|
||||
Type 'C' is not assignable to type 'I'.
|
||||
Property 'alsoWorks' is missing in type 'C'.
|
||||
tests/cases/compiler/fuzzy.ts(25,20): error TS2352: Neither type '{ oneI: this; }' nor type 'R' is assignable to the other.
|
||||
Property 'anything' is missing in type '{ oneI: this; }'.
|
||||
|
||||
@@ -39,7 +38,6 @@ tests/cases/compiler/fuzzy.ts(25,20): error TS2352: Neither type '{ oneI: this;
|
||||
!!! error TS2322: Types of property 'oneI' are incompatible.
|
||||
!!! error TS2322: Type 'this' is not assignable to type 'I'.
|
||||
!!! error TS2322: Type 'C' is not assignable to type 'I'.
|
||||
!!! error TS2322: Property 'alsoWorks' is missing in type 'C'.
|
||||
}
|
||||
|
||||
worksToo():R {
|
||||
|
||||
-24
@@ -1,24 +0,0 @@
|
||||
tests/cases/conformance/types/thisType/thisTypeInBasePropertyAndDerivedContainerOfBase01.ts(11,21): error TS2344: Type 'this' does not satisfy the constraint 'Foo'.
|
||||
Type 'Bar' is not assignable to type 'Foo'.
|
||||
Types of property 'self' are incompatible.
|
||||
Type 'Bar' is not assignable to type 'this'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/thisType/thisTypeInBasePropertyAndDerivedContainerOfBase01.ts (1 errors) ====
|
||||
|
||||
interface BoxOfFoo<T extends Foo> {
|
||||
item: T
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
self: this;
|
||||
}
|
||||
|
||||
interface Bar extends Foo {
|
||||
other: BoxOfFoo<this>;
|
||||
~~~~
|
||||
!!! error TS2344: Type 'this' does not satisfy the constraint 'Foo'.
|
||||
!!! error TS2344: Type 'Bar' is not assignable to type 'Foo'.
|
||||
!!! error TS2344: Types of property 'self' are incompatible.
|
||||
!!! error TS2344: Type 'Bar' is not assignable to type 'this'.
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
=== tests/cases/conformance/types/thisType/thisTypeInBasePropertyAndDerivedContainerOfBase01.ts ===
|
||||
|
||||
interface BoxOfFoo<T extends Foo> {
|
||||
>BoxOfFoo : Symbol(BoxOfFoo, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 1, 19))
|
||||
>Foo : Symbol(Foo, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 3, 1))
|
||||
|
||||
item: T
|
||||
>item : Symbol(item, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 1, 35))
|
||||
>T : Symbol(T, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 1, 19))
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
>Foo : Symbol(Foo, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 3, 1))
|
||||
|
||||
self: this;
|
||||
>self : Symbol(self, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 5, 15))
|
||||
}
|
||||
|
||||
interface Bar extends Foo {
|
||||
>Bar : Symbol(Bar, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 7, 1))
|
||||
>Foo : Symbol(Foo, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 3, 1))
|
||||
|
||||
other: BoxOfFoo<this>;
|
||||
>other : Symbol(other, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 9, 27))
|
||||
>BoxOfFoo : Symbol(BoxOfFoo, Decl(thisTypeInBasePropertyAndDerivedContainerOfBase01.ts, 0, 0))
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
=== tests/cases/conformance/types/thisType/thisTypeInBasePropertyAndDerivedContainerOfBase01.ts ===
|
||||
|
||||
interface BoxOfFoo<T extends Foo> {
|
||||
>BoxOfFoo : BoxOfFoo<T>
|
||||
>T : T
|
||||
>Foo : Foo
|
||||
|
||||
item: T
|
||||
>item : T
|
||||
>T : T
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
>Foo : Foo
|
||||
|
||||
self: this;
|
||||
>self : this
|
||||
}
|
||||
|
||||
interface Bar extends Foo {
|
||||
>Bar : Bar
|
||||
>Foo : Foo
|
||||
|
||||
other: BoxOfFoo<this>;
|
||||
>other : BoxOfFoo<this>
|
||||
>BoxOfFoo : BoxOfFoo<T>
|
||||
}
|
||||
Reference in New Issue
Block a user