[SR-8209] Operation subclasses behaviour depends on compilation order #50741
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.1
Attachment: Download
Environment
Xcode 9.4.1 + Swift 4.0
Works on 9.2 and 10
Additional Detail from JIRA
md5: 2a99a6d99d406cd455fb30474ad8d5b2
Issue Description:
We have two subclasses of `Operation` (Operation -> AsyncOperation ->
AsyncValueBlockOperation) that override `isAsynchronous` property:
Execution code:
And their behaviour depends on compilation order.
If we place classes in that order and try to execute code the result will be a crash.
Crash:
If we change order of classes definitions the code will work properly.
The text was updated successfully, but these errors were encountered: