swiftlang/swift

[SR-4294] Warn about overly-nested generic type specifiers

开放

#46,877 创建于 2017年3月20日

 (3 条评论) (0 个反应) (0 位负责人)Swift (10,719 个派生)batch import
bugcompilerdiagnostics qualitygood first issue

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 510 个 PR)

描述

Previous ID SR-4294
Radar None
Original Reporter @jckarter
Type Bug
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, StarterBug
Assignee None
Priority Medium

md5: c1aab4167ab2d03975e533b9a662698f

Issue Description:

https://twitter.com/steipete/status/843896945718546434

The tweet is in C++, but the same problem could affect Swift. A warning about overly-nested generic type specifiers that have enough piled-up closing >>>>>> brackets to be mistaken for a conflict marker in version control might be helpful, not only for tooling interaction, but for code cleanliness, since you should probably consider using a type alias at that point.

贡献者指南