Skip to content

Commit e391439

Browse files
Accepted baselines.
1 parent 497e3cf commit e391439

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/baselines/reference/errorForUsingPropertyOfTypeAsType01.errors.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(6,12): error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
1+
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(6,12): error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
22
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(14,12): error TS2503: Cannot find namespace 'Foo'.
3-
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(22,12): error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
4-
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(29,12): error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
3+
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(22,12): error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
4+
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(29,12): error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
55
tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(36,12): error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
66

77

@@ -12,8 +12,8 @@ tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(36,12): error TS2702
1212
}
1313

1414
var x: Foo.bar = "";
15-
~~~
16-
!!! error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
15+
~~~~~~~
16+
!!! error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
1717
}
1818

1919
namespace Test2 {
@@ -32,17 +32,17 @@ tests/cases/compiler/errorForUsingPropertyOfTypeAsType01.ts(36,12): error TS2702
3232
}
3333

3434
var x: Foo.bar = "";
35-
~~~
36-
!!! error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
35+
~~~~~~~
36+
!!! error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
3737
}
3838

3939
namespace Test4 {
4040
export type Foo = { bar: number }
4141
| { bar: string }
4242

4343
var x: Foo.bar = "";
44-
~~~
45-
!!! error TS2702: 'Foo' only refers to a type, but is being used as a namespace here.
44+
~~~~~~~
45+
!!! error TS2713: Cannot access 'Foo.bar' because 'Foo' is a type, but not a namespace. Did you mean to retrieve the type of the property 'bar' in 'Foo' with 'Foo["bar"]'?
4646
}
4747

4848
namespace Test5 {

0 commit comments

Comments
 (0)