Resolve string instances to the program's string class

This commit is contained in:
dcodeIO
2018-04-06 00:19:45 +02:00
parent 70a0123554
commit 6268b92eba
13 changed files with 103 additions and 31 deletions

View File

@ -113,8 +113,9 @@ export class String {
@operator("==")
private static __eq(left: String, right: String): bool {
if (left === right) return true;
if (left === null) return right === null;
else if (right === null) return false;
if (right === null) return false;
var leftLength = left.length;
if (leftLength != right.length) return false;