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 MyEnum {
memberwise init
internal let value: Int
public static let static_value: MyEnum = construct_some_value()
public static fun construct_some_value() -> MyEnum {
return .new(value: 0)
}
}
Nice detective work. It means the bug is caused by the logic that is enumerating the fields that must be initialized before self can be considered whole.
See the following code:
Compiling this yields:
It seems that the initializer incorrectly also requires the static value to be constructed.
The text was updated successfully, but these errors were encountered: