Skip to content

Commit

Permalink
Changed debug comments in KebsValueEnumeratum
Browse files Browse the repository at this point in the history
  • Loading branch information
agrodowski committed Sep 15, 2023
1 parent 1d33f57 commit d899b8b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ class ValueEnumEntryMacros(override val c: blackbox.Context) extends EnumMacroUt
}
}

// This works!
// This works in ValueEnumeratumTest!
// val enumEntrySeq: Seq[ValueEnumLikeEntry[Int]] = LibraryItem.values.map(item =>
// new ValueEnumLikeEntry[Int] {
// override def value: Int = item.value
// })
// println(enumEntrySeq)


// And this does not compile. I think there's something wrong with EnumeratumEntry usage since when there is
// I think there's something wrong with EnumeratumEntry usage since when quasiquote is repleced by
// q"""
// new _root_.pl.iterators.kebs.enumeratum.ValueEnumOf[${ValueType}, ${EnumEntry}](
// new _root_.pl.iterators.kebs.enums.ValueEnumLike[${ValueType}, ${EnumEntry}] {
// override def values: Seq[$EnumEntry] = null
// }
// )
// """
// it compiles and the test just fails (but without any errors).
// it suddenly compiles and the test just fails (but without any errors).

0 comments on commit d899b8b

Please sign in to comment.