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
To trigger the issue, the field needs to be in a trait, it has to be a final val, the field needs a literal type and the right-hand-side needs to different from just being the literal itself (e.g., it compiles for final val x: 1 = 1).
Output
dotty.tools.FatalError:Illegal tree in gen of genInterface():privatevalx:Intclass=traitTextendsObject {
def<init>():Unit=
{
this.x =???()
()
}
privatevalx:Intfinaldefx():Int=this.x
}