File tree 3 files changed +2
-4
lines changed
compiler/src/dotty/tools/dotc/core
library/src/scala/annotation
3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1048,7 +1048,6 @@ class Definitions {
1048
1048
@ tu lazy val NowarnAnnot : ClassSymbol = requiredClass(" scala.annotation.nowarn" )
1049
1049
@ tu lazy val UnusedAnnot : ClassSymbol = requiredClass(" scala.annotation.unused" )
1050
1050
@ tu lazy val UnrollAnnot : ClassSymbol = requiredClass(" scala.annotation.unroll" )
1051
- @ tu lazy val TransparentTraitAnnot : ClassSymbol = requiredClass(" scala.annotation.transparentTrait" )
1052
1051
@ tu lazy val NativeAnnot : ClassSymbol = requiredClass(" scala.native" )
1053
1052
@ tu lazy val RepeatedAnnot : ClassSymbol = requiredClass(" scala.annotation.internal.Repeated" )
1054
1053
@ tu lazy val RuntimeCheckedAnnot : ClassSymbol = requiredClass(" scala.annotation.internal.RuntimeChecked" )
Original file line number Diff line number Diff line change @@ -1220,9 +1220,7 @@ object SymDenotations {
1220
1220
|| accessBoundary(defn.RootClass ).isProperlyContainedIn(symbol.topLevelClass)
1221
1221
1222
1222
final def isTransparentClass (using Context ): Boolean =
1223
- is(TransparentType )
1224
- || defn.isAssumedTransparent(symbol)
1225
- || isClass && hasAnnotation(defn.TransparentTraitAnnot )
1223
+ is(TransparentType ) || defn.isAssumedTransparent(symbol)
1226
1224
1227
1225
/** The class containing this denotation which has the given effective name. */
1228
1226
final def enclosingClassNamed (name : Name )(using Context ): Symbol = {
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ package scala.annotation
5
5
* are not inferred when combined with other types in an intersection.
6
6
* See reference/other-new-features/transparent-traits.html for details.
7
7
*/
8
+ @ deprecated(message = " Transparent traits/classes via annotations is no longer supported. Use instead the `transparent` modifier" , since = " 3.8.0" )
8
9
final class transparentTrait extends StaticAnnotation
You can’t perform that action at this time.
0 commit comments