Skip to content

Commit 16d031b

Browse files
committed
Drop @mixin entirely
Replace with @transparentTrait for now; that way we need not distinguish between bootstrapped and non-bootstrapped code.
1 parent 9f722dd commit 16d031b

File tree

5 files changed

+2
-27
lines changed

5 files changed

+2
-27
lines changed

library/src-non-bootstrapped/scala/annotation/mixin.scala

Lines changed: 0 additions & 7 deletions
This file was deleted.

library/src-non-bootstrapped/scala/reflect/Enum.scala

Lines changed: 0 additions & 8 deletions
This file was deleted.

library/src-non-bootstrapped/scala/runtime/EnumValue.scala

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package scala.reflect
22

33
/** A base trait of all Scala enum definitions */
4-
transparent trait Enum extends Any, Product, Serializable:
4+
@annotation.transparentTrait trait Enum extends Any, Product, Serializable:
55

66
/** A number uniquely identifying a case of an enum */
77
def ordinal: Int

library/src-bootstrapped/scala/runtime/EnumValue.scala renamed to library/src/scala/runtime/EnumValue.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scala.runtime
22

3-
transparent trait EnumValue extends Product, Serializable:
3+
@annotation.transparentTrait trait EnumValue extends Product, Serializable:
44
override def canEqual(that: Any) = this eq that.asInstanceOf[AnyRef]
55
override def productArity: Int = 0
66
override def productElement(n: Int): Any =

0 commit comments

Comments
 (0)