C# duplicate defnitions

Đang mở
#1,731 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
tooling

Hướng nghiên cứu

Reproduce the issue by generating C# bindings from the reported .wit file in the Pumpkin-MC/pumpkin-plugin-wit context, and compare the output with the duplicate member and method shown here. Read the similar issue #1703 for related behavior; done means generated C# no longer contains duplicate definitions such as Tag.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

gen-c#

Trying to generate C# bindings for a .wit file can yield code like the following.

public interface IRecipeImports {
    public class Ingredient {
        public readonly byte Tag;
        //...
        public static Ingredient Tag(string tag) {
            //...
        }
    }
}

which contains duplicate definitions of a member and a method.

The context is an attempt to generate C# bindings for Pumpkin-MC/pumpkin-plugin-wit.
This issue seems similar to #1703, except that it affects C# too.

I'm a bit lost, so please let me know if you need more context or information.

Ngôn ngữ chính
Rust
Star
1.5k
Fork
306
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/wit-bindgen

Tất cả issue của bytecodealliance/wit-bindgen

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.