You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add message parameter to @experimental annotation (#19935)
Once we bootstrap this addition, we will be able to enhance the messages
of `@experimental` definitions in the library, the annotations added
`-experimental` and the ones we plan to add for language features in
#19807.
Copy file name to clipboardExpand all lines: tests/neg-macros/i18677-a.check
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@
7
7
|The tree does not conform to the compiler's tree invariants.
8
8
|
9
9
|Macro was:
10
-
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-a/Test_2.scala") @scala.annotation.experimental @extendFoo class AFoo()
10
+
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-a/Test_2.scala") @scala.annotation.experimental("Added by -experimental") @extendFoo class AFoo()
11
11
|
12
12
|The macro returned:
13
-
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-a/Test_2.scala") @scala.annotation.experimental @extendFoo class AFoo() extends Foo
13
+
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-a/Test_2.scala") @scala.annotation.experimental("Added by -experimental") @extendFoo class AFoo() extends Foo
14
14
|
15
15
|Error:
16
16
|assertion failed: Parents of class symbol differs from the parents in the tree for class AFoo
Copy file name to clipboardExpand all lines: tests/neg-macros/i18677-b.check
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,10 @@
7
7
|The tree does not conform to the compiler's tree invariants.
8
8
|
9
9
|Macro was:
10
-
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-b/Test_2.scala") @scala.annotation.experimental @extendFoo class AFoo()
10
+
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-b/Test_2.scala") @scala.annotation.experimental("Added by -experimental") @extendFoo class AFoo()
11
11
|
12
12
|The macro returned:
13
-
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-b/Test_2.scala") @scala.annotation.experimental @extendFoo class AFoo() extends Foo
13
+
|@scala.annotation.internal.SourceFile("tests/neg-macros/i18677-b/Test_2.scala") @scala.annotation.experimental("Added by -experimental") @extendFoo class AFoo() extends Foo
14
14
|
15
15
|Error:
16
16
|assertion failed: Parents of class symbol differs from the parents in the tree for class AFoo
0 commit comments