Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions std/assembly/builtins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export declare function select<T>(ifTrue: T, ifFalse: T, condition: bool): T;

// @ts-ignore: decorator
@unsafe @builtin
export declare function unreachable(): void;
export declare function unreachable(): auto;

// @ts-ignore: decorator
@builtin
Expand Down Expand Up @@ -2302,7 +2302,7 @@ export abstract class i31 { // FIXME: usage of 'new' requires a class :(

// @ts-ignore: decorator
@builtin
static new(value: i32): i31ref { return unreachable(); }
static new(value: i32): i31ref { return changetype<i31ref>(unreachable()); }

// @ts-ignore: decorator
@builtin
Expand Down