Created
July 15, 2017 02:28
-
-
Save ezura/894f241d26924262cbb03a9335683ceb to your computer and use it in GitHub Desktop.
swift4 `final` 扱い
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// > Updated the discussion of protocol extensions in Extension Declaration now that final isn’t allowed in them. | |
// https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/RevisionHistory.html | |
// https://web.archive.org/web/20170221062722/https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html | |
// https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/doc/uid/TP40014097-CH34-ID378 | |
class A {} | |
extension A { | |
final func f() {} | |
} | |
A().f() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment