Skip to content

Commit

Permalink
Fix some errors on nightlies
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Oct 27, 2024
1 parent f2aaa76 commit 0c4b38e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Swift Main",
"image": "swiftlang/swift:nightly-main-jammy",
// Install SwiftFormat
"postStartCommand": "apt update -y && apt install wget apt-utils -y && wget -O - https://github.com/MahdiBM/swift-format-repo/raw/main/install/swift-format-install.sh | bash",
"customizations": {
"vscode": {
"extensions": [
"sswg.swift-lang", // Swift
"vknabel.vscode-swiftformat", // SwiftFormat
"esbenp.prettier-vscode", // Prettier
"usernamehw.errorlens", // Error Lens
"GitHub.copilot", // GitHub Copilot
"github.vscode-github-actions", // GitHub Actions
"GitHub.vscode-pull-request-github", // GitHub PR / Issues
"eamodio.gitlens", // GitLens (from GitKraken)
"redhat.vscode-yaml" // YAML
],
"settings": {
"lldb.library": "/usr/lib/liblldb.so"
}
}
}
}
2 changes: 1 addition & 1 deletion Sources/EnumeratorMacroImpl/EnumeratorMacroType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ extension EnumeratorMacroType: MemberMacro {
}

let message: MacroError
let errorSyntax: SyntaxProtocol
let errorSyntax: any SyntaxProtocol
if let parserError = error as? MustacheTemplate.ParserError {
message = .mustacheTemplateError(
message: String(describing: parserError.error)
Expand Down
2 changes: 1 addition & 1 deletion Sources/EnumeratorMacroImpl/Types/EArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extension EArray: EMustacheTransformable {
keyValues.underlying.first(where: { $0.key.underlying == name })?.value
)
}
if let comparable = self as? EComparableSequence {
if let comparable = self as? (any EComparableSequence) {
/// The underlying type is in charge of adding a diagnostic, if needed.
return comparable.comparableTransform(name)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/EnumeratorMacroImpl/Types/EOptional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ extension EOptional: EMustacheTransformable {
case "exists":
return true
default:
if let value = value as? EMustacheTransformable {
if let value = value as? (any EMustacheTransformable) {
/// The underlying type is in charge of adding a diagnostic, if needed.
return value.transform(name)
} else {
Expand Down

0 comments on commit 0c4b38e

Please sign in to comment.