Generalize the warning about combining number literals with decimal places with integer-type suffixes

Đang mở Phù hợp với người mới
#13,384 0 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ó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
82/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, powershell
Lĩnh vực
documentation

Hướng nghiên cứu

Đọc reference/7.7/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md và tìm cảnh báo về các literal số thực kiểu double có hậu tố kiểu long. Cập nhật cảnh báo để giải thích rằng hành vi này áp dụng cho mọi hậu tố kiểu số nguyên, dựa theo các ví dụ trong issue; hoàn thành khi cảnh báo mô tả chính xác phạm vi rộng hơn.

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

Mô tả

needs-triage
Type of issue

Missing information

Feedback

The warning in question currently reads:

The syntax permits a double real literal to have a long-type suffix

However, it isn't just the [long] type suffix (l or L) that the behavior applies to, it is ALL integer-type suffixes (y, uy, s, us, ...)

E.g., 1.5y and 2.5y both result in [sbyte] value 2.

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_Numeric_Literals?view=powershell-7.7

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.7/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Author

@sdwheeler

Platform Id

dac0e2f9-5d6c-27aa-4439-31eec1460c43

Document Id

39e82455-dbc6-c9a1-5476-e7577feace13

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

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.

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 MicrosoftDocs/PowerShell-Docs

Tất cả issue của MicrosoftDocs/PowerShell-Docs

Issue tương tự

Thêm issue về Documentation

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.