T.scala:47: error: type mismatch;
found : AnyRef{def x: Int @scala.annotation.effects.mod @scala.annotation.effects.throws[Nothing] @scala.annotation.effects.noIo; def x_=(x$1: Int): Unit @scala.annotation.effects.mod($anon.this) @scala.annotation.effects.throws[Nothing] @scala.annotation.effects.noIo; var x: Int}
required: AnyRef{def x: Int @scala.annotation.effects.mod @scala.annotation.effects.throws[Nothing] @scala.annotation.effects.noIo; def x_=(x$1: Int): Unit @scala.annotation.effects.mod($anon.this) @scala.annotation.effects.throws[Nothing] @scala.annotation.effects.noIo}
Type error occured while type checking a tree for effect inference.
val c = new { var x = 0 }
^
gives