Last active
January 12, 2021 18:39
-
-
Save tapthaker/606ca66c6c9229d8fe69ca0110acb34d to your computer and use it in GitHub Desktop.
SR_8536_assign_member_function_to_closure.swift
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
var bar: () -> () = {} | |
class Foo { | |
func baz() {} | |
init() { | |
bar = baz // We oughta warn about capturing 'self' implicitly. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment