Skip to content

Commit dbb8601

Browse files
committed
Private some vals
1 parent 5866498 commit dbb8601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/chisel3/StrongEnum.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ abstract class EnumType(private val factory: EnumFactory, selfAnnotating: Boolea
234234
}
235235

236236
trait EnumFactory1H extends EnumFactory{
237-
override val oneHot: Boolean = true
237+
final override val oneHot: Boolean = true
238238
}
239239

240240
abstract class EnumFactory {
@@ -245,7 +245,7 @@ abstract class EnumFactory {
245245

246246
private var id: BigInt = 0
247247
private[chisel3] var width: Width = 0.W
248-
val oneHot: Boolean = false
248+
private val oneHot: Boolean = false
249249

250250
private case class EnumRecord(inst: Type, name: String)
251251
private val enumRecords = mutable.ArrayBuffer.empty[EnumRecord]

0 commit comments

Comments
 (0)