forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let annotations on parameters see preceding type parameters
Fixes scala#12953
- Loading branch information
1 parent
24e5777
commit d80e1d7
Showing
3 changed files
with
32 additions
and
5 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,7 @@ | ||
class Schema(impl: Class[_]) extends scala.annotation.StaticAnnotation | ||
|
||
class Ann[A] extends scala.annotation.StaticAnnotation | ||
|
||
case class Foo[A](@Schema(classOf[List[A]]) foo: String) | ||
case class Bar[A](@Ann[A] foo: String) | ||
def baz[A](@Ann[A] foo: String) = () |