mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
50 lines
2.6 KiB
Diff
50 lines
2.6 KiB
Diff
--- old.classFieldSuperNotAccessibleJs.errors.txt
|
|
+++ new.classFieldSuperNotAccessibleJs.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
+index.js(7,14): error TS2339: Property 'justProp' does not exist on type 'YaddaBase'.
|
|
+index.js(9,9): error TS7053: Element implicitly has an 'any' type because expression of type '"literalElementAccess"' can't be used to index type 'YaddaBase'.
|
|
+ Property 'literalElementAccess' does not exist on type 'YaddaBase'.
|
|
index.js(20,22): error TS2855: Class field 'roots' defined by the parent class is not accessible in the child class via super.
|
|
index.js(23,22): error TS2855: Class field 'foo' defined by the parent class is not accessible in the child class via super.
|
|
-index.js(26,22): error TS2855: Class field 'justProp' defined by the parent class is not accessible in the child class via super.
|
|
-index.js(29,22): error TS2855: Class field ''literalElementAccess'' defined by the parent class is not accessible in the child class via super.
|
|
-
|
|
-
|
|
-==== index.js (4 errors) ====
|
|
+index.js(26,22): error TS2339: Property 'justProp' does not exist on type 'YaddaBase'.
|
|
+index.js(29,22): error TS2339: Property 'literalElementAccess' does not exist on type 'YaddaBase'.
|
|
+
|
|
+
|
|
+==== index.js (6 errors) ====
|
|
// https://github.com/microsoft/TypeScript/issues/55884
|
|
|
|
class YaddaBase {
|
|
@@= skipped -11, +14 lines =@@
|
|
this.roots = "hi";
|
|
/** @type number */
|
|
this.justProp;
|
|
+ ~~~~~~~~
|
|
+!!! error TS2339: Property 'justProp' does not exist on type 'YaddaBase'.
|
|
/** @type string */
|
|
this['literalElementAccess'];
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+!!! error TS7053: Element implicitly has an 'any' type because expression of type '"literalElementAccess"' can't be used to index type 'YaddaBase'.
|
|
+!!! error TS7053: Property 'literalElementAccess' does not exist on type 'YaddaBase'.
|
|
|
|
this.b()
|
|
}
|
|
@@= skipped -24, +29 lines =@@
|
|
get justPropTests() {
|
|
return super.justProp;
|
|
~~~~~~~~
|
|
-!!! error TS2855: Class field 'justProp' defined by the parent class is not accessible in the child class via super.
|
|
+!!! error TS2339: Property 'justProp' does not exist on type 'YaddaBase'.
|
|
}
|
|
get literalElementAccessTests() {
|
|
return super.literalElementAccess;
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
-!!! error TS2855: Class field ''literalElementAccess'' defined by the parent class is not accessible in the child class via super.
|
|
+!!! error TS2339: Property 'literalElementAccess' does not exist on type 'YaddaBase'.
|
|
}
|
|
}
|
|
|