blob: 0ea9d9629a8075aa167a33577efa99f86282c85f (
plain) (
blame)
1
2
3
4
|
// check that the `var x` below is assigned the type `Int`, and not `Constant(0)`,
// and that we can assign to it (if it gets a constant type, the `x` in `x = 42`
// is constant-folded to `0` and we can't find a setter..
trait C { protected final var x = 0; x = 42 }
|