feat: prefix tuples with hash again cause ambguity with call

This commit is contained in:
rvcas
2022-12-13 10:16:51 -05:00
committed by Lucas
parent 6dc4738b66
commit 69db9696d6
3 changed files with 49 additions and 34 deletions

View File

@@ -1,11 +1,11 @@
use sample
pub fn spend(datum: sample.Datum, rdmr: sample.Redeemer, _ctx: Nil) -> Bool {
let x = (datum, rdmr, #[244])
let y = [(#[222], #[222]), (#[233], #[52])]
let x = #(datum, rdmr, #[244])
let y = [#(#[222], #[222]), #(#[233], #[52])]
let [z, f, ..g] = y
let (a, b, _) = x
z == (#[222], #[222])
let #(a, b, _) = x
z == #(#[222], #[222])
}
test foo() {