From 5a57d01d05d1b53a8e2eb267ecc56ddbd75a6d46 Mon Sep 17 00:00:00 2001 From: lemusthelroy Date: Fri, 13 Dec 2019 07:43:47 +0000 Subject: Update typescript.html.markdown This will overcome TSError:2362 : "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type" --- typescript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'typescript.html.markdown') diff --git a/typescript.html.markdown b/typescript.html.markdown index 00f0cbc5..eeda0b7b 100644 --- a/typescript.html.markdown +++ b/typescript.html.markdown @@ -139,7 +139,7 @@ class Point3D extends Point { // Overwrite dist() { let d = super.dist(); - return Math.sqrt(d * d + this.z * this.z); + return Math.sqrt(d() * d() + this.z * this.z); } } -- cgit v1.2.3