mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 14:31:45 +03:00
22 lines
228 B
Rust
22 lines
228 B
Rust
|
extern crate wasm_bindgen;
|
||
|
|
||
|
use wasm_bindgen::prelude::*;
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
enum A {}
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub enum B {
|
||
|
D(u32),
|
||
|
}
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub enum C {
|
||
|
X = 1 + 3,
|
||
|
}
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub enum D {
|
||
|
X = 4294967296,
|
||
|
}
|