summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs
blob: 42d83879e7a4bd8c3bc20ecc3be5c41a6712849a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    type A;

    #[wasm_bindgen(setter, method)]
    fn a(this: &A, b: i32);

    #[wasm_bindgen(setter = x, method)]
    fn b(this: &A, b: i32);

    #[wasm_bindgen(setter, method, js_name = x)]
    fn c(this: &A, b: i32);
}

fn main() {}