-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from olafurpg/synthetic-symbols
- Loading branch information
Showing
16 changed files
with
251 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/minimized-scala/src/main/scala/minimized/Issue396.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package minimized | ||
|
||
case class Issue396(a: Int) | ||
object Issue396App { | ||
println(Issue396) | ||
Issue396.apply(42).copy(a = 41) | ||
Issue396.apply(42).productElement(0) | ||
Issue396.apply(42).productElementName(0) | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/minimized-scala/src/main/scala/minimized/Issue397.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package minimized | ||
|
||
class Issue397 { | ||
var blah = Set("abc") | ||
blah = Set.empty[String] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/snapshots/src/main/generated/minimized/Issue396.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package minimized | ||
// ^^^^^^^^^ definition minimized/ | ||
|
||
case class Issue396(a: Int) | ||
// ^^^^^^^^ definition minimized/Issue396# case class Issue396(a: Int) | ||
// ^^^^^^^^ definition minimized/Issue396#copy(). def copy(a: Int): Issue396 | ||
// ^^^^^^^^ definition minimized/Issue396#productElement(). def productElement(x$1: Int): Any | ||
// ^^^^^^^^ definition minimized/Issue396. object Issue396 | ||
// ^^^^^^^^ definition minimized/Issue396.apply(). def apply(a: Int): Issue396 | ||
// ^^^^^^^^ definition minimized/Issue396#productElementName(). def productElementName(x$1: Int): String | ||
// definition minimized/Issue396#`<init>`(). def this(a: Int) | ||
// ^ definition minimized/Issue396#a. val a: Int | ||
// ^^^ reference scala/Int# | ||
object Issue396App { | ||
// ^^^^^^^^^^^ definition minimized/Issue396App. object Issue396App | ||
println(Issue396) | ||
//^^^^^^^ reference scala/Predef.println(+1). | ||
// ^^^^^^^^ reference minimized/Issue396. | ||
Issue396.apply(42).copy(a = 41) | ||
//^^^^^^^^ reference minimized/Issue396. | ||
// ^^^^^ reference minimized/Issue396.apply(). | ||
// ^^^^ reference minimized/Issue396#copy(). | ||
// ^ reference minimized/Issue396#copy().(a) | ||
Issue396.apply(42).productElement(0) | ||
//^^^^^^^^ reference minimized/Issue396. | ||
// ^^^^^ reference minimized/Issue396.apply(). | ||
// ^^^^^^^^^^^^^^ reference minimized/Issue396#productElement(). | ||
Issue396.apply(42).productElementName(0) | ||
//^^^^^^^^ reference minimized/Issue396. | ||
// ^^^^^ reference minimized/Issue396.apply(). | ||
// ^^^^^^^^^^^^^^^^^^ reference minimized/Issue396#productElementName(). | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/snapshots/src/main/generated/minimized/Issue397.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package minimized | ||
// ^^^^^^^^^ definition minimized/ | ||
|
||
class Issue397 { | ||
// ^^^^^^^^ definition minimized/Issue397# class Issue397 | ||
// definition minimized/Issue397#`<init>`(). def this() | ||
var blah = Set("abc") | ||
// ^^^^ definition minimized/Issue397#blah(). var blah: Set[String] | ||
// ^^^^ definition minimized/Issue397#`blah_=`(). var blah_=(x$1: Set[String]): Unit | ||
// ^^^ reference scala/Predef.Set. | ||
// reference scala/collection/IterableFactory#apply(). | ||
blah = Set.empty[String] | ||
//^^^^ reference minimized/Issue397#`blah_=`(). | ||
// ^^^ reference scala/Predef.Set. | ||
// ^^^^^ reference scala/collection/immutable/Set.empty(). | ||
// ^^^^^^ reference scala/Predef.String# | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.