You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type A: Deinitializable {
public fun foo<T>(_ x: T) {}
public memberwise init
}
fun bar<T>(_ x: T) {
var x: A
A.init(self: &x)
}
The first step is to redefine init as a contextual token so that we support the syntax A.init. Currently, one workaround is to enclose init in back-quotes.
The text was updated successfully, but these errors were encountered:
Example of program that should be supported:
The first step is to redefine
init
as a contextual token so that we support the syntaxA.init
. Currently, one workaround is to encloseinit
in back-quotes.The text was updated successfully, but these errors were encountered: