summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs')
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs b/vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs
new file mode 100644
index 000000000..42d83879e
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/invalid-setter.rs
@@ -0,0 +1,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() {}