Closed alex-vasenin closed 6 years ago
Merging #72 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #72 +/- ##
=======================================
Coverage 91.26% 91.26%
=======================================
Files 41 41
Lines 1465 1465
=======================================
Hits 1337 1337
Misses 128 128
Impacted Files | Coverage Δ | |
---|---|---|
SwiftAA/Constants.swift | 100% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 04a0edc...0b53eb3. Read the comment docs.
You are perfectly right, thanks for checking this out.
It's a very bad idea to introduce public function with the exact same name as standard Swift function. Declaring such function does not override system function
Swift.fatalError()
, but merely creates a new functionSwiftAA.fatalError()
with the same signature. Since local scope take precedence, calling unqualifiedfatalError()
from SwiftAA module will call local function. However, if you call unqualifiedfatalError()
from other module which has SwiftAA imported, swift compiler would not be able to infer which function to call,Swift.fatalError()
orSwiftAA.fatalError()
and you'll getAmbiguous use of 'fatalError(_:file:line:)'
error on every fatalError call.