Skip to content

Commit c8e3d9f

Browse files
committed
Add missing import required to use a conformance
A new compiler check reports a missing import for a conformance implicitly imported: ``` Sources/_TestSupport/Error.swift:21:13: error: cannot use conformance of 'Float' to 'Real' here; 'RealModule' was not imported by this file public func componentwiseError(_ tst: Complex<Float>, _ ref: Complex<Double>) -> Double { ^ ``` Address this issue in the project by adding the missing import.
1 parent a7ceb77 commit c8e3d9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/_TestSupport/Error.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import ComplexModule
14+
import RealModule
1415

1516
public func relativeError(_ tst: Float, _ ref: Double) -> Double {
1617
let scale = max(ref.magnitude, Double(Float.leastNormalMagnitude))

0 commit comments

Comments
 (0)