From 2eb0fed6e029ce8b93f5538cc3573985eb3a0832 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 31 Jul 2016 13:41:25 +0200 Subject: Fix #1285: Mutable vars are not to be considered constant --- tests/pos/i1285.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos/i1285.scala (limited to 'tests') diff --git a/tests/pos/i1285.scala b/tests/pos/i1285.scala new file mode 100644 index 000000000..3fb267653 --- /dev/null +++ b/tests/pos/i1285.scala @@ -0,0 +1,4 @@ +class Test { + final var x = false + x = true +} -- cgit v1.2.3