[SR-5682] Passing self
into superclass's initializer compiles differently on Swift 3 and Swift 4
#48252
Labels
accepts invalid
Bug: Accepts invalid
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.0
Environment
Swift 3.1 on Xcode 8, Swift 4.0 on Xcode 9 beta 5
Additional Detail from JIRA
md5: 94bb0322329c49394c756f3a272d4e98
Issue Description:
Not sure if this is a feature or a bug, below code can be compiled successfully on Swift 4.0, but not on Swift 3.1. Swift 3 compiler throws an error: 'self' used before super.init call.
The text was updated successfully, but these errors were encountered: