Runtime 'none' by default

This commit is contained in:
dcode
2019-04-09 08:28:14 +02:00
parent eb6c4c09ee
commit bb659bbdcd
31 changed files with 1253 additions and 1734 deletions

View File

@@ -119,3 +119,9 @@ export function testAssign(a: Ref | null, b: Ref): void {
a = b;
if (isNullable(a)) ERROR("should be non-nullable");
}
export function testNeverNull(a: Ref | null): void {
if (a) {
a!; // INFO AS225: Expression is never 'null'.
}
}