mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Update baselines
This commit is contained in:
parent
0f74294da2
commit
1bdea3910f
@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/a.js(14,5): error TS2424: Class 'A' defines instance member function 'foo', but extended class 'B' defines it as instance member property.
|
||||
tests/cases/compiler/a.js(14,10): error TS2424: Class 'A' defines instance member function 'foo', but extended class 'B' defines it as instance member property.
|
||||
|
||||
|
||||
==== tests/cases/compiler/a.js (1 errors) ====
|
||||
@ -16,7 +16,7 @@ tests/cases/compiler/a.js(14,5): error TS2424: Class 'A' defines instance member
|
||||
constructor() {
|
||||
super();
|
||||
this.foo = () => 3;
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
~~~
|
||||
!!! error TS2424: Class 'A' defines instance member function 'foo', but extended class 'B' defines it as instance member property.
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
///<reference path="fourslash.ts" />
|
||||
|
||||
// In an inferred class, we can to-to-def successfully
|
||||
// In an inferred class, we can go-to-def successfully
|
||||
|
||||
// @allowNonTsExtensions: true
|
||||
// @Filename: Foo.js
|
||||
//// class Foo {
|
||||
//// constructor() {
|
||||
//// /*dst1*/this.alpha = 10;
|
||||
//// /*dst2*/this.beta = 'gamma';
|
||||
//// this./*dst1*/alpha = 10;
|
||||
//// this./*dst2*/beta = 'gamma';
|
||||
//// }
|
||||
//// method() { return this.alpha; }
|
||||
//// }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user