buggood first issuehelp wanted
仓库指标
- Star
- (4,637 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Bug Report
Overview
Top level StringLiterals fail validation, they should not. Instead, they should compile out to a constant i32 pointer to the data location for a string.
Expected
Top level strings are allowed
Actual
Strings in top-level constants throw validation warnings.
Example
const memory: Memory<{ initial: 1 }>;
const myString: i32 = 'hello world';
export function test(): i32 {
return myString;
}