-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #13547 from dotty-staging/fixx-#13546
Set the correct owner when quote making inlinable
- Loading branch information
Showing
4 changed files
with
37 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package mylib | ||
import scala.quoted.* | ||
|
||
object Main: | ||
protected def foo: Unit = {} | ||
inline def fooCaller: Unit = | ||
def f = foo | ||
foo | ||
inline def fooCallerM: Unit = ${ fooMacro } | ||
def fooMacro(using Quotes): Expr[Unit] = | ||
'{ foo } | ||
val fooExpr = '{ foo } | ||
'{ $fooExpr } |
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,5 @@ | ||
import mylib.Main | ||
|
||
object Test: | ||
Main.fooCaller | ||
Main.fooCallerM |