diff options
Diffstat (limited to 'test/files')
4 files changed, 24 insertions, 0 deletions
diff --git a/test/files/buildmanager/namesdefaults/defparam-use.scala b/test/files/buildmanager/namesdefaults/defparam-use.scala new file mode 100644 index 0000000000..a8a2a9f445 --- /dev/null +++ b/test/files/buildmanager/namesdefaults/defparam-use.scala @@ -0,0 +1,5 @@ + +object Test extends Application { + val outer = new Outer + new outer.Inner +} diff --git a/test/files/buildmanager/namesdefaults/defparam.scala b/test/files/buildmanager/namesdefaults/defparam.scala new file mode 100644 index 0000000000..d817c719ab --- /dev/null +++ b/test/files/buildmanager/namesdefaults/defparam.scala @@ -0,0 +1,7 @@ +class Outer { + + class Inner(val x: List[Int] = Nil) + +// lazy val Inner = "abc" +} + diff --git a/test/files/buildmanager/namesdefaults/namesdefaults.check b/test/files/buildmanager/namesdefaults/namesdefaults.check new file mode 100644 index 0000000000..f713d9dead --- /dev/null +++ b/test/files/buildmanager/namesdefaults/namesdefaults.check @@ -0,0 +1,9 @@ +builder > defparam.scala defparam-use.scala +compiling Set(defparam-use.scala, defparam.scala) +Changes: Map() +builder > defparam-use.scala +compiling Set(defparam-use.scala) +Changes: Map(class Test$delayedInit$body -> List(Changed(Definition(Test$delayedInit$body.<init>))[constructor Test$delayedInit$body changed from ($outer: object Test)<notype> to ($outer: object Test)Test$delayedInit$body flags: <method>], Changed(Definition(Test.delayedInit$body.<init>))[constructor delayedInit$body changed from ($outer: object Test)<notype> to ($outer: object Test)Test#delayedInit$body flags: <method>]), object Test -> List()) +builder > defparam-use.scala +compiling Set(defparam-use.scala) +Changes: Map(class Test$delayedInit$body -> List(Changed(Definition(Test$delayedInit$body.<init>))[constructor Test$delayedInit$body changed from ($outer: object Test)<notype> to ($outer: object Test)Test$delayedInit$body flags: <method>], Changed(Definition(Test.delayedInit$body.<init>))[constructor delayedInit$body changed from ($outer: object Test)<notype> to ($outer: object Test)Test#delayedInit$body flags: <method>]), object Test -> List()) diff --git a/test/files/buildmanager/namesdefaults/namesdefaults.test b/test/files/buildmanager/namesdefaults/namesdefaults.test new file mode 100644 index 0000000000..84ccc36bc3 --- /dev/null +++ b/test/files/buildmanager/namesdefaults/namesdefaults.test @@ -0,0 +1,3 @@ +>>compile defparam.scala defparam-use.scala +>>compile defparam-use.scala +>>compile defparam-use.scala |