f1a2e41a8a
This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts(4,5): error TS1131: Property or signature expected.
|
|
tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts(8,5): error TS1131: Property or signature expected.
|
|
tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts(12,5): error TS1131: Property or signature expected.
|
|
tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts(12,16): error TS2304: Cannot find name 'string'.
|
|
tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts(13,1): error TS1128: Declaration or statement expected.
|
|
|
|
|
|
==== tests/cases/conformance/types/namedTypes/interfaceWithPrivateMember.ts (5 errors) ====
|
|
// interfaces do not permit private members, these are errors
|
|
|
|
interface I {
|
|
private x: string;
|
|
~~~~~~~
|
|
!!! error TS1131: Property or signature expected.
|
|
}
|
|
|
|
interface I2<T> {
|
|
private y: T;
|
|
~~~~~~~
|
|
!!! error TS1131: Property or signature expected.
|
|
}
|
|
|
|
var x: {
|
|
private y: string;
|
|
~~~~~~~
|
|
!!! error TS1131: Property or signature expected.
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'string'.
|
|
}
|
|
~
|
|
!!! error TS1128: Declaration or statement expected. |