Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: scala/scala3
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f6d8019
Choose a base ref
...
head repository: scala/scala3
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fdb14f2
Choose a head ref
  • 2 commits
  • 59 files changed
  • 1 contributor

Commits on Dec 15, 2022

  1. Macro annotations class modifications (part 2)

    Enable modification of classes with `MacroAnnotation`:
     * Can annotate `class` to transform it
     * Can annotate `object` to transform the companion class
    
    Supported class modifications:
     * Modify the implementations of `def`, `val`, `var`, `lazy val`, `class`, `object` in the class
     * Add new `def`, `val`, `var`, `lazy val`, `class`, `object` members to the class
     * Add a new override for a `def`, `val`, `var`, `lazy val` members in the class
    
    Restrictions:
     * An annotation on a top-level class cannot return a top-level `def`, `val`, `var`, `lazy val`
    nicolasstucki authored and Nicolas Stucki committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    2916c3d View commit details
    Browse the repository at this point in the history
  2. Enable returning classes from MacroAnnotations (part 3)

    Enable the addition of classes from a `MacroAnnotation`:
     * Can add new `class` definitions next to the annotated definition
    
    Special cases:
     * An annotated top-level `def`, `val`, `var`, `lazy val` can return a `class`
       definition that is owned by the package or package object.
    
    Related PRs:
     * Follows #16454
    nicolasstucki authored and Nicolas Stucki committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    fdb14f2 View commit details
    Browse the repository at this point in the history
Loading