mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
This migrates our UI tests to the recently published `trybuild` crate which should hopefully be a bit more robust than `compiletest` over time!
19 lines
301 B
Rust
19 lines
301 B
Rust
|
|
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() {}
|