Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back object wrapping for… objects
If the user code solely consists of a singleton, like ```scala object Foo { val n = 2 } ``` then it is wrapped in an object rather than a class. This allows users to wrap some code in objects rather than classes if needed. In particular, this is useful for macro code (than can't be defined in classes that we instantiate ourselves), or for definitions that are later processed by macros (definitions from classes are harder to handle than those in objects)
- Loading branch information
1 parent
0ec7733
commit 96e4a0b
Showing
3 changed files
with
93 additions
and
46 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