Skip to content

source compatibility project penny-bot fails with a compiler error #75500

@eeckstein

Description

@eeckstein

Description

/build/swift-source-compat-suite/project_cache/penny-bot/Sources/Penny/Services/AutoPingsService/DefaultPingsService.swift:20:44: error: reference to generic type 'Expression' requires arguments in <...>
 18 |     var _cachedItems: S3AutoPingItems?
 19 |     /// `[ExpressionHash: Expression]`
 20 |     var _cachedExpressionsHashTable: [Int: Expression]?
    |                                            `- error: reference to generic type 'Expression' requires arguments in <...>
 21 |     var resetItemsTask: Task<(), Never>?
 22 | 

Reproduction

builds:
https://ci.swift.org/job/swift-6.0-source-compat-suite-debug-ubuntu-2004/121/
https://ci.swift.org/job/swift-6.0-source-compat-suite-ubuntu-2004/121/
https://ci.swift.org/job/swift-source-compat-suite-debug-ubuntu-2004/499/
https://ci.swift.org/job/swift-source-compat-suite-ubuntu-2004/599/

log: https://ci.swift.org/job/swift-6.0-source-compat-suite-debug-ubuntu-2004/121/artifact/build/swift-source-compat-suite/FAIL_penny-bot_5.10_BuildSwiftPackage.log

Expected behavior

should build fine

Environment

CI

Additional information

Note: in recent builds this might be hidden by another problem:

/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/penny-bot/.build/checkouts/DiscordBM/Sources/DiscordModels/Types/Permission.swift:3:1: error: cannot specialize non-generic type '() -> ()'
 1 | 
 2 | /// https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
 3 | @UnstableEnum<UInt>
   | `- error: cannot specialize non-generic type '() -> ()'
 4 | public enum Permission: Sendable, Codable {
 5 |     case createInstantInvite // 0

which should be fixed with the revert #75489

Metadata

Metadata

Assignees

Labels

FoundationLinuxPlatform: LinuxbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfmultiple modulesFlag: An issue whose reproduction requires multiple modulesname lookupArea → compiler → type checker: Name lookupsource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.0type checkerArea → compiler: Semantic analysistype declarationsFeature → declarations: Type declarationsunexpected errorBug: Unexpected error

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions