Skip to content

Commit

Permalink
Disable Swift 5.3 workaround for 5.4 and higher (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Apr 26, 2021
1 parent 928ffcf commit 77c3d89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Ink/API/MarkdownParser.swift
Expand Up @@ -67,9 +67,7 @@ public struct MarkdownParser {
let type = fragmentType(for: reader.currentCharacter,
nextCharacter: reader.nextCharacter)

#if swift(>=5.4)
#warning("review compiler crash work-around below")
#elseif swift(>=5.3) && os(Linux)
#if swift(>=5.3) && swift(<5.4) && os(Linux)
// inline function call to work around https://bugs.swift.org/browse/SR-13645
let fragment: ParsedFragment = try {
let startIndex = reader.currentIndex
Expand Down

0 comments on commit 77c3d89

Please sign in to comment.