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 #2039 from scalamacros/ticket/7046
SI-7046 reflection now auto-initializes knownDirectSubclasses
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Set(class D, class E) | ||
Set(class D, class E) |
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,13 @@ | ||
import scala.reflect.runtime.universe._ | ||
import scala.reflect.runtime.{currentMirror => cm} | ||
|
||
sealed class C | ||
class D extends C | ||
class E extends C | ||
|
||
object Test extends App { | ||
val c = cm.staticClass("C") | ||
println(c.knownDirectSubclasses) | ||
c.typeSignature | ||
println(c.knownDirectSubclasses) | ||
} |
8d25d05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job pr-rangepos-per-commit failed for 8d25d05 (results):
Took 9 s.
to rebuild, comment "PLS REBUILD/pr-rangepos-per-commit@8d25d05e9bf848d763e7b657d9c7e96ea5cb8daf"on PR #2112
8d25d05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job pr-checkin-per-commit failed for 8d25d05 (results):
Took 9 s.
to rebuild, comment "PLS REBUILD/pr-checkin-per-commit@8d25d05e9bf848d763e7b657d9c7e96ea5cb8daf"on PR #2112