Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/component-macro/tests/codegen/dead-code.wit
1692 views
package a:b;

world imports {
  import interface-with-live-type;
  import interface-with-dead-type;
}

interface interface-with-live-type {
  record live-type {
    a: u32,
  }
  f: func() -> live-type;
}


interface interface-with-dead-type {
  use interface-with-live-type.{live-type};

  record dead-type {
    a: u32,
  }

  variant v {
    a(live-type),
    b(dead-type),
  }
}