ODHack12compiler: frontendcompiler: parsergood first issuelanguage featureteam:compiler
倉庫指標
- Star
- (61,702 star)
- PR 合併指標
- (平均合併 22小時 6分鐘) (30 天內合併 16 個 PR)
描述
Allow self impl for contracts as a shorthand for an anonymous ABI spec. The point is to not have to write an ABI type for very small contracts.
This:
contract;
impl Contract {
fn foo() -> u64 { 0 }
}
Should produce the same binary and ABI spec as:
contract;
abi MyAbi {
fn foo() -> u64;
}
impl MyAbi for Contract {
fn foo() -> u64 { 0 }
}