Skip to content

Commit 8708c89

Browse files
Accepted baselines.
1 parent 375437e commit 8708c89

6 files changed

+95
-33
lines changed

tests/baselines/reference/optionalProperties01.errors.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
=== tests/cases/conformance/types/typeRelationships/comparable/optionalProperties01.ts ===
2+
3+
interface Foo {
4+
>Foo : Symbol(Foo, Decl(optionalProperties01.ts, 0, 0))
5+
6+
required1: string;
7+
>required1 : Symbol(Foo.required1, Decl(optionalProperties01.ts, 1, 15))
8+
9+
required2: string;
10+
>required2 : Symbol(Foo.required2, Decl(optionalProperties01.ts, 2, 20))
11+
12+
optional?: string;
13+
>optional : Symbol(Foo.optional, Decl(optionalProperties01.ts, 3, 20))
14+
}
15+
16+
const foo1 = { required1: "hello" } as Foo;
17+
>foo1 : Symbol(foo1, Decl(optionalProperties01.ts, 7, 5))
18+
>required1 : Symbol(required1, Decl(optionalProperties01.ts, 7, 14))
19+
>Foo : Symbol(Foo, Decl(optionalProperties01.ts, 0, 0))
20+
21+
const foo2 = { required1: "hello", optional: "bar" } as Foo;
22+
>foo2 : Symbol(foo2, Decl(optionalProperties01.ts, 8, 5))
23+
>required1 : Symbol(required1, Decl(optionalProperties01.ts, 8, 14))
24+
>optional : Symbol(optional, Decl(optionalProperties01.ts, 8, 34))
25+
>Foo : Symbol(Foo, Decl(optionalProperties01.ts, 0, 0))
26+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
=== tests/cases/conformance/types/typeRelationships/comparable/optionalProperties01.ts ===
2+
3+
interface Foo {
4+
>Foo : Foo
5+
6+
required1: string;
7+
>required1 : string
8+
9+
required2: string;
10+
>required2 : string
11+
12+
optional?: string;
13+
>optional : string | undefined
14+
}
15+
16+
const foo1 = { required1: "hello" } as Foo;
17+
>foo1 : Foo
18+
>{ required1: "hello" } as Foo : Foo
19+
>{ required1: "hello" } : { required1: string; }
20+
>required1 : string
21+
>"hello" : "hello"
22+
>Foo : Foo
23+
24+
const foo2 = { required1: "hello", optional: "bar" } as Foo;
25+
>foo2 : Foo
26+
>{ required1: "hello", optional: "bar" } as Foo : Foo
27+
>{ required1: "hello", optional: "bar" } : { required1: string; optional: string; }
28+
>required1 : string
29+
>"hello" : "hello"
30+
>optional : string
31+
>"bar" : "bar"
32+
>Foo : Foo
33+

tests/baselines/reference/optionalProperties02.errors.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=== tests/cases/conformance/types/typeRelationships/comparable/optionalProperties02.ts ===
2+
3+
interface Foo {
4+
>Foo : Symbol(Foo, Decl(optionalProperties02.ts, 0, 0))
5+
6+
a?: string;
7+
>a : Symbol(Foo.a, Decl(optionalProperties02.ts, 1, 15))
8+
9+
b: string;
10+
>b : Symbol(Foo.b, Decl(optionalProperties02.ts, 2, 15))
11+
}
12+
13+
<Foo>{ a: undefined };
14+
>Foo : Symbol(Foo, Decl(optionalProperties02.ts, 0, 0))
15+
>a : Symbol(a, Decl(optionalProperties02.ts, 6, 6))
16+
>undefined : Symbol(undefined)
17+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== tests/cases/conformance/types/typeRelationships/comparable/optionalProperties02.ts ===
2+
3+
interface Foo {
4+
>Foo : Foo
5+
6+
a?: string;
7+
>a : string | undefined
8+
9+
b: string;
10+
>b : string
11+
}
12+
13+
<Foo>{ a: undefined };
14+
><Foo>{ a: undefined } : Foo
15+
>Foo : Foo
16+
>{ a: undefined } : { a: undefined; }
17+
>a : undefined
18+
>undefined : undefined
19+

0 commit comments

Comments
 (0)