///|
type Z

///|
pub impl ToUInt64 for Z with fn to_uint64(value : UInt64) -> UInt64 {
  value
}

///|
trait ToUInt64 {
  fn to_uint64(value : UInt64) -> UInt64
}

///|
pub fn[T : ToUInt64] to_uint64(_ : FuncRef[(T) -> Unit]) -> UInt64 {
  T::to_uint64(0)
}

///|
pub impl ToInt for Z with fn to_int(value : Int32) -> Int32 {
  value
}

///|
trait ToInt {
  fn to_int(value : Int32) -> Int32
}

///|
pub fn[T : ToInt] to_int(_ : FuncRef[(T) -> Unit]) -> Int32 {
  T::to_int(0)
}