mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
58 lines
2.6 KiB
Diff
58 lines
2.6 KiB
Diff
--- old.assignmentToVoidZero2.errors.txt
|
|
+++ new.assignmentToVoidZero2.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-assignmentToVoidZero2.js(2,9): error TS2339: Property 'k' does not exist on type 'typeof import("assignmentToVoidZero2")'.
|
|
-assignmentToVoidZero2.js(5,3): error TS2339: Property 'y' does not exist on type 'typeof o'.
|
|
-assignmentToVoidZero2.js(6,9): error TS2339: Property 'y' does not exist on type 'typeof o'.
|
|
-assignmentToVoidZero2.js(10,10): error TS2339: Property 'q' does not exist on type 'C'.
|
|
-assignmentToVoidZero2.js(13,9): error TS2339: Property 'q' does not exist on type 'C'.
|
|
-importer.js(1,13): error TS2305: Module '"./assignmentToVoidZero2"' has no exported member 'k'.
|
|
+assignmentToVoidZero2.js(2,1): error TS7008: Member 'k' implicitly has an 'any' type.
|
|
+assignmentToVoidZero2.js(5,1): error TS7008: Member 'y' implicitly has an 'any' type.
|
|
+assignmentToVoidZero2.js(9,5): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
+assignmentToVoidZero2.js(10,5): error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
+assignmentToVoidZero2.js(12,9): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
|
|
|
|
|
==== assignmentToVoidZero2.js (5 errors) ====
|
|
exports.j = 1;
|
|
exports.k = void 0;
|
|
- ~
|
|
-!!! error TS2339: Property 'k' does not exist on type 'typeof import("assignmentToVoidZero2")'.
|
|
+ ~~~~~~~~~~~~~~~~~~
|
|
+!!! error TS7008: Member 'k' implicitly has an 'any' type.
|
|
var o = {}
|
|
o.x = 1
|
|
o.y = void 0
|
|
- ~
|
|
-!!! error TS2339: Property 'y' does not exist on type 'typeof o'.
|
|
+ ~~~~~~~~~~~~
|
|
+!!! error TS7008: Member 'y' implicitly has an 'any' type.
|
|
o.x + o.y
|
|
- ~
|
|
-!!! error TS2339: Property 'y' does not exist on type 'typeof o'.
|
|
|
|
function C() {
|
|
this.p = 1
|
|
+ ~~~~
|
|
+!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
this.q = void 0
|
|
- ~
|
|
-!!! error TS2339: Property 'q' does not exist on type 'C'.
|
|
+ ~~~~
|
|
+!!! error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
|
|
}
|
|
var c = new C()
|
|
+ ~~~~~~~
|
|
+!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
|
c.p + c.q
|
|
- ~
|
|
-!!! error TS2339: Property 'q' does not exist on type 'C'.
|
|
|
|
-==== importer.js (1 errors) ====
|
|
+==== importer.js (0 errors) ====
|
|
import { j, k } from './assignmentToVoidZero2'
|
|
- ~
|
|
-!!! error TS2305: Module '"./assignmentToVoidZero2"' has no exported member 'k'.
|
|
j + k
|
|
|