From 5a986a401ebc6baf8146e82aaa2057e5a6d46c88 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 24 Oct 2017 11:41:51 -0700 Subject: [PATCH] source-dependencies/value-class-underlying: fix test We were not testing what we thought we were testing before, because C used the name "x" which is also the name of the parameter we change in A, so when we changed A we were invalidating C too. Fixed by using a different name than "x" in C, which reveals that there is a bug somewhere since the test doesn't pass anymore. --- .../source-dependencies/value-class-underlying/C.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zinc/src/sbt-test/source-dependencies/value-class-underlying/C.scala b/zinc/src/sbt-test/source-dependencies/value-class-underlying/C.scala index 0c09ea764f..9a6a975330 100644 --- a/zinc/src/sbt-test/source-dependencies/value-class-underlying/C.scala +++ b/zinc/src/sbt-test/source-dependencies/value-class-underlying/C.scala @@ -1,6 +1,6 @@ object C { def main(args: Array[String]): Unit = { - val x = B.foo - println("x: " + x) // Need to use x in an expression to see if it crashes or not + val duck = B.foo + println("duck: " + duck) // Need to use duck in an expression to see if it crashes or not } }