-
Notifications
You must be signed in to change notification settings - Fork 153
source compatibility project violet fails with a compiler error #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could this error actually be legit due to https://forums.swift.org/t/review-sf-0006-expression-macro-and-type/70211? Now there are two distinct extramodular |
Yes @AnthonyLatsis I believe you're correct. I think the module that imports both |
@xedin Since by all appearances this is not a compiler issue, could you please transfer it to the compat suite? |
Hi @LiarPrincess , it appears the source compatibility suite has discovered an issue building violet. This will likely be uncovered in the next SDK update on our CI. Would you be interested in updating the violet source to account for this? If you find there is no longer any value in testing violet builds nightly, please let me know and I can remove it from the source compatability suite |
Just a PR with an updated tag will suffice? |
Yep, or you can just send me an updated revision and I can open a PR quick and tag you for review |
I created a PR (link above). There may be a defect in the ambiguity resolution. Tested on: swift-6.1-DEVELOPMENT-SNAPSHOT-2025-02-10-a-ubuntu24.04. This will NOT compile: protocol Proto {}
extension Proto {
typealias Expression = Int
}
class X: Proto {
// 🔴 main.swift:60:15: error: reference to generic type 'Expression' requires arguments in <...>
// FoundationEssentials.Expression:2:15: note: generic type 'Expression' declared here
func foo(n: Expression) {}
} This will compile: class Base {
typealias Expression = Int
}
class Child: Base {
// 🟢 Works.
func foo(n: Expression) {}
} In other words:
I think that both of them should be recognized as a part of the type. |
Description
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_violet_5.3_BuildSwiftPackage.log
Expected behavior
should build fine
Environment
CI
Additional information
No response
The text was updated successfully, but these errors were encountered: