mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 22:22:13 +00:00
Runtime 'none' by default
This commit is contained in:
@@ -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'.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user