Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit bcae7df

Browse files
committed
在StatementParser中新增对"auto"类型的支持,进一步增强类型系统的灵活性和表达能力。
1 parent 32e9721 commit bcae7df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parser/statement_parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ impl<'a> StatementParser for ParserBase<'a> {
185185
"string" => Type::String,
186186
"long" => Type::Long,
187187
"void" => Type::Void,
188+
"auto" => Type::Auto,
188189
"Exception" => Type::Exception,
189190
_ => Type::Class(base_type), // 假设是类类型
190191
}

0 commit comments

Comments
 (0)